diff --git a/CMakeLists.txt b/CMakeLists.txt index a7bf214..b83e8ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,4 +216,15 @@ if(WIN32) COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SDL2_DLL_PATH}/SDL2.dll" $ COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SDL2_MIXER_DLL_PATH}/SDL2_mixer.dll" $ ) -endif() \ No newline at end of file +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() diff --git a/SpaceCadetPinball.desktop b/SpaceCadetPinball.desktop new file mode 100644 index 0000000..7dd7f2b --- /dev/null +++ b/SpaceCadetPinball.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=SpaceCadetPinball +Comment=Decompilation of 3D Pinball for Windows – Space Cadet +Exec=SpaceCadetPinball +Icon=SpaceCadetPinball +Terminal=false +Type=Application +Categories=Game; diff --git a/SpaceCadetPinball/Icon_16x16.png b/SpaceCadetPinball/Icon_16x16.png new file mode 100644 index 0000000..5518d84 Binary files /dev/null and b/SpaceCadetPinball/Icon_16x16.png differ diff --git a/SpaceCadetPinball/Icon_32x32.png b/SpaceCadetPinball/Icon_32x32.png new file mode 100644 index 0000000..a080c67 Binary files /dev/null and b/SpaceCadetPinball/Icon_32x32.png differ diff --git a/SpaceCadetPinball/Icon_48x48.png b/SpaceCadetPinball/Icon_48x48.png new file mode 100644 index 0000000..17690b1 Binary files /dev/null and b/SpaceCadetPinball/Icon_48x48.png differ