summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
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
parent84cea9806fd19bad9bb7758b4b826ef25fee1ccc (diff)
downloadCMake-b125a2ae7bd0efe9a5623bd6ccba821bafcd36e2.zip
CMake-b125a2ae7bd0efe9a5623bd6ccba821bafcd36e2.tar.gz
CMake-b125a2ae7bd0efe9a5623bd6ccba821bafcd36e2.tar.bz2
ENH: add KDE desktop stuff
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMake.desktop13
-rw-r--r--Source/QtDialog/CMakeLists.txt9
-rw-r--r--Source/QtDialog/cmakecache.xml8
3 files changed, 30 insertions, 0 deletions
diff --git a/Source/QtDialog/CMake.desktop b/Source/QtDialog/CMake.desktop
new file mode 100644
index 0000000..0c82538
--- /dev/null
+++ b/Source/QtDialog/CMake.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=CMake
+Comment=Cross-platform buildsystem
+Exec=cmake-gui %f
+Icon=CMakeSetup.png
+Terminal=false
+X-MultipleArgs=false
+Type=Application
+Categories=Application;Development;
+StartupNotify=true
+MimeType=application/x-cmakecache;
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")
diff --git a/Source/QtDialog/cmakecache.xml b/Source/QtDialog/cmakecache.xml
new file mode 100644
index 0000000..a13b5b1
--- /dev/null
+++ b/Source/QtDialog/cmakecache.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-cmakecache">
+ <comment>CMake cache file</comment>
+ <glob pattern="CMakeCache.txt"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
+</mime-info>