From kde-devel Tue Jun 07 02:31:11 2011 From: Brian Helm Date: Tue, 07 Jun 2011 02:31:11 +0000 To: kde-devel Subject: Accessing CMake Environment Variables From Program Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=130741391622219 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0161390158==" --===============0161390158== Content-Type: multipart/alternative; boundary=0015174a0f8863ad5f04a5160399 --0015174a0f8863ad5f04a5160399 Content-Type: text/plain; charset=ISO-8859-1 Okay, I feel like this should be a very simple thing to accomplish. However, I can't seem to figure out how to do it. In my CMakeLists.txt file I have the following lines to install images: install(FILES images/close.svgz DESTINATION ${ICON_INSTALL_DIR}/default.kde4/scalable/apps/plasma-widget-maxwincontrol/) install(FILES images/maximize.svgz DESTINATION ${ICON_INSTALL_DIR}/default.kde4/scalable/apps/plasma-widget-maxwincontrol/) install(FILES images/minimize.svgz DESTINATION ${ICON_INSTALL_DIR}/default.kde4/scalable/apps/plasma-widget-maxwincontrol/) As you probably already know ICON_INSTALL_DIR is relative to CMAKE_INSTALL_PREFIX. So what is the best way for my program to know the installed location of those images? in Christ, Brian ~ Jesus answered, "I am the way and the truth and the life. No one comes to the Father except through me." - John 14:6 --0015174a0f8863ad5f04a5160399 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Okay, I feel like this should be a very simple thing to accomplish. = =A0However, I can't seem to figure out how to do it. =A0In my =A0CMakeL= ists.txt file I have the following lines to install images:

<= /div>
install(FILES images/close.svgz DESTINATION ${ICON_INSTALL_DIR}/d= efault.kde4/scalable/apps/plasma-widget-maxwincontrol/)
install(F= ILES images/maximize.svgz DESTINATION ${ICON_INSTALL_DIR}/default.kde4/scal= able/apps/plasma-widget-maxwincontrol/)
install(FILES images/minimize.svgz DESTINATION ${ICON_INSTALL_DIR}/def= ault.kde4/scalable/apps/plasma-widget-maxwincontrol/)

<= /div>
As you probably already know ICON_INSTALL_DIR is relative to CMAK= E_INSTALL_PREFIX.

So what is the best way for my program to know the inst= alled location of those images?

in Christ,
Brian<= br>
~ Jesus answered, "I am the way and the truth and the life. No = one comes to the Father except through me." - John 14:6

--0015174a0f8863ad5f04a5160399-- --===============0161390158== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0161390158==--