cmake: Add a desktop file.

This commit is contained in:
orbea 2020-12-05 17:53:27 -08:00
parent 96b061bd1c
commit e8ec18bfbb
2 changed files with 18 additions and 0 deletions

View File

@ -2188,6 +2188,12 @@ if(IOS)
)
endif()
configure_file(
"${CMAKE_SOURCE_DIR}/ppsspp.desktop.in"
"${CMAKE_BINARY_DIR}/ppsspp.desktop"
@ONLY
)
install(
TARGETS ${TargetBin}
DESTINATION "${CMAKE_INSTALL_BINDIR}"
@ -2197,6 +2203,11 @@ install(
DESTINATION "${CMAKE_INSTALL_DATADIR}/ppsspp"
PATTERN ".git*" EXCLUDE
)
install(
FILES "${CMAKE_BINARY_DIR}/ppsspp.desktop"
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications"
RENAME ${TargetBin}.desktop
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/icons/hicolor"
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons"

7
ppsspp.desktop.in Normal file
View File

@ -0,0 +1,7 @@
[Desktop Entry]
Name=@TargetBin@
Exec=@TargetBin@
Icon=ppsspp
Type=Application
Comment=ppsspp (fast and portable PSP emulator)
Categories=Game