[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Accessing CMake Environment Variables From Program
From: Stefan Majewsky <stefan.majewsky () googlemail ! com>
Date: 2011-06-07 12:00:06
Message-ID: BANLkTinPJR317G2KJw_A4qdXjYBgQ5DxxQ () mail ! gmail ! com
[Download RAW message or body]
On Tue, Jun 7, 2011 at 4:31 AM, Brian Helm <bthelm2@gmail.com> wrote:
> 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?
KStandardDirs::locate("icon", "default.kde4/...")
With a grain of salt.
Greetings
Stefan
>> 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