mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-23 14:24:52 +00:00
cmake: Add a desktop file.
This commit is contained in:
parent
96b061bd1c
commit
e8ec18bfbb
@ -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
7
ppsspp.desktop.in
Normal file
@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Name=@TargetBin@
|
||||
Exec=@TargetBin@
|
||||
Icon=ppsspp
|
||||
Type=Application
|
||||
Comment=ppsspp (fast and portable PSP emulator)
|
||||
Categories=Game
|
Loading…
x
Reference in New Issue
Block a user