ENH: add KDE desktop stuff

This commit is contained in:
Bill Hoffman 2008-03-11 17:27:41 -04:00
parent 84cea9806f
commit b125a2ae7b
3 changed files with 30 additions and 0 deletions

View File

@ -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;

View File

@ -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")

View File

@ -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>