Add 'make install' for unix platforms

This commit is contained in:
Mahmood - Zer0xFF 2019-05-18 14:12:21 +01:00
parent b6eca426d9
commit a4cb7a9e96
2 changed files with 17 additions and 0 deletions

View File

@ -221,6 +221,13 @@ elseif(TARGET_PLATFORM_WIN32)
win32/InputProviderDirectInput.h
)
add_executable(Play WIN32 ${QT_SOURCES} ${QT_MOC_SRCS} ${QT_RES_SOURCES} ${QT_UI_HEADERS})
elseif(TARGET_PLATFORM_UNIX)
add_executable(Play ${QT_SOURCES} ${QT_MOC_SRCS} ${QT_RES_SOURCES} ${QT_UI_HEADERS})
install(TARGETS Play DESTINATION bin RENAME Play PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../../installer_unix/Play.desktop DESTINATION share/applications)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../../icons/icon_base.png DESTINATION share/icons RENAME Play.png)
else()
add_executable(Play ${QT_SOURCES} ${QT_MOC_SRCS} ${QT_RES_SOURCES} ${QT_UI_HEADERS})
endif()

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Name=Play!
TryExec=/usr/bin/Play
Exec=/usr/bin/Play
Icon=Play
Version=1.0
Terminal=false
Type=Application
Categories=Game;Emulator;