[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Accessing CMake Environment Variables From Program
From:       Brian Helm <bthelm2 () gmail ! com>
Date:       2011-06-07 2:31:11
Message-ID: BANLkTi=1qWKQ3h4wnu8sy3GbBTkvSeH3Rg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

<div>Okay, I feel like this should be a very simple thing to accomplish.  However, I \
can&#39;t seem to figure out how to do it.  In my  CMakeLists.txt file I have the \
following lines to install images:</div><div><br></div> <div><div>install(FILES \
images/close.svgz DESTINATION \
${ICON_INSTALL_DIR}/default.kde4/scalable/apps/plasma-widget-maxwincontrol/)</div><div>install(FILES \
images/maximize.svgz DESTINATION \
${ICON_INSTALL_DIR}/default.kde4/scalable/apps/plasma-widget-maxwincontrol/)</div> \
<div>install(FILES images/minimize.svgz DESTINATION \
${ICON_INSTALL_DIR}/default.kde4/scalable/apps/plasma-widget-maxwincontrol/)</div></div><div><br></div><div>As \
you probably already know ICON_INSTALL_DIR is relative to CMAKE_INSTALL_PREFIX.</div> \
<div><br></div><div>So what is the best way for my program to know the installed \
location of those images?</div><br clear="all">in Christ,<br>Brian<br><br>~ Jesus \
answered, &quot;I am the way and the truth and the life. No one comes to the Father \
except through me.&quot; - John 14:6<br> <br>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic