mirror of
https://github.com/libretro/Play-.git
synced 2024-11-23 16:59:41 +00:00
Add 'make install' for unix platforms
This commit is contained in:
parent
b6eca426d9
commit
a4cb7a9e96
@ -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()
|
||||
|
10
installer_unix/Play.desktop
Normal file
10
installer_unix/Play.desktop
Normal 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;
|
||||
|
Loading…
Reference in New Issue
Block a user