ENH: add KDE desktop stuff
This commit is contained in:
parent
84cea9806f
commit
b125a2ae7b
|
@ -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;
|
|
@ -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")
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue