summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-11 21:27:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-11 21:27:41 (GMT)
commitb125a2ae7bd0efe9a5623bd6ccba821bafcd36e2 (patch)
tree4f5fbb66571f6db6e3a355795e4493b990bbb1bd /Source/QtDialog/CMakeLists.txt
parent84cea9806fd19bad9bb7758b4b826ef25fee1ccc (diff)
downloadCMake-b125a2ae7bd0efe9a5623bd6ccba821bafcd36e2.zip
CMake-b125a2ae7bd0efe9a5623bd6ccba821bafcd36e2.tar.gz
CMake-b125a2ae7bd0efe9a5623bd6ccba821bafcd36e2.tar.bz2
ENH: add KDE desktop stuff
Diffstat (limited to 'Source/QtDialog/CMakeLists.txt')
-rw-r--r--Source/QtDialog/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt
index dc77a28..2e61c29 100644
--- a/Source/QtDialog/CMakeLists.txt
+++ b/Source/QtDialog/CMakeLists.txt
@@ -66,6 +66,15 @@ ELSE(NOT QT4_FOUND)
INSTALL(TARGETS cmake-gui RUNTIME DESTINATION bin
${CMAKE_INSTALL_DESTINATION_ARGS})
ENDIF(CMAKE_PACKAGE_QTGUI)
+
+ IF(UNIX)
+ # install a desktop file so CMake appears in the application start menu
+ # with an icon
+ INSTALL(FILES CMake.desktop DESTINATION share/applications )
+ INSTALL(FILES CMakeSetup.png DESTINATION share/pixmaps )
+ INSTALL(FILES cmakecache.xml DESTINATION share/mime/packages )
+ ENDIF(UNIX)
+
IF(APPLE)
SET(CMAKE_POSTFLIGHT_SCRIPT
"${CMake_BINARY_DIR}/Source/QtDialog/postflight.sh")