cmake: Add a desktop file.

This commit is contained in:
orbea committed 2020-12-05 20:42:35 -08:00
1 parent 96b061bd1c
commit e8ec18bfbb
2 files changed
+18

No files matched your search

+11
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
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