Merge topic 'unix-icon-install'
fb13502f
QtDialog: install the 128x128 iconfcb4541a
QtDialog: don't install desktop file bits on Apple
This commit is contained in:
commit
b233a09f6e
|
@ -3,7 +3,7 @@ Version=1.0
|
|||
Name=CMake
|
||||
Comment=Cross-platform buildsystem
|
||||
Exec=cmake-gui %f
|
||||
Icon=CMakeSetup32
|
||||
Icon=CMakeSetup
|
||||
Terminal=false
|
||||
X-MultipleArgs=false
|
||||
Type=Application
|
||||
|
|
|
@ -171,11 +171,17 @@ set(CMAKE_INSTALL_DESTINATION_ARGS
|
|||
|
||||
install(TARGETS cmake-gui RUNTIME DESTINATION bin ${CMAKE_INSTALL_DESTINATION_ARGS})
|
||||
|
||||
if(UNIX)
|
||||
if(UNIX AND NOT APPLE)
|
||||
foreach (size IN ITEMS 32 128)
|
||||
install(
|
||||
FILES "${CMAKE_CURRENT_SOURCE_DIR}/CMakeSetup${size}.png"
|
||||
DESTINATION "share/icons/hicolor/${size}x${size}/apps"
|
||||
RENAME "CMakeSetup.png")
|
||||
endforeach ()
|
||||
|
||||
# install a desktop file so CMake appears in the application start menu
|
||||
# with an icon
|
||||
install(FILES CMake.desktop DESTINATION share/applications )
|
||||
install(FILES CMakeSetup32.png DESTINATION share/pixmaps )
|
||||
install(FILES cmakecache.xml DESTINATION share/mime/packages )
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue