cmake: add install rules (#1341)

This commit is contained in:
Alexandre Bouvier 2024-10-11 06:26:30 +00:00 committed by GitHub
parent 66f1bb937f
commit 04ad430115
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -872,3 +872,11 @@ endif()
# Discord RPC
target_link_libraries(shadps4 PRIVATE discord-rpc)
# Install rules
install(TARGETS shadps4 BUNDLE DESTINATION .)
if (ENABLE_QT_GUI AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
install(FILES ".github/shadps4.desktop" DESTINATION "share/applications")
install(FILES ".github/shadps4.png" DESTINATION "share/icons/hicolor/512x512/apps")
endif()