mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-04 07:20:15 +02:00
Add linux desktop file and install (#100)
* extract png icons from the ico * add desktop file * add linux install option to cmake * use 32bit icons
This commit is contained in:
parent
4e8dbd0b86
commit
de13d4e326
5 changed files with 20 additions and 1 deletions
|
@ -216,4 +216,15 @@ if(WIN32)
|
|||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SDL2_DLL_PATH}/SDL2.dll" $<TARGET_FILE_DIR:SpaceCadetPinball>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SDL2_MIXER_DLL_PATH}/SDL2_mixer.dll" $<TARGET_FILE_DIR:SpaceCadetPinball>
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
install(TARGETS "${PROJECT_NAME}" RUNTIME)
|
||||
install(FILES "${PROJECT_NAME}.desktop" DESTINATION "share/applications")
|
||||
install(FILES "${PROJECT_NAME}/Icon_16x16.png" DESTINATION
|
||||
"share/icons/hicolor/16x16/apps" RENAME "${PROJECT_NAME}.png")
|
||||
install(FILES "${PROJECT_NAME}/Icon_32x32.png" DESTINATION
|
||||
"share/icons/hicolor/32x32/apps" RENAME "${PROJECT_NAME}.png")
|
||||
install(FILES "${PROJECT_NAME}/Icon_48x48.png" DESTINATION
|
||||
"share/icons/hicolor/48x48/apps" RENAME "${PROJECT_NAME}.png")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue