From e8ec18bfbb0f4c7e3d6299408f3c112fd698b8cf Mon Sep 17 00:00:00 2001 From: orbea Date: Sat, 5 Dec 2020 17:53:27 -0800 Subject: [PATCH] cmake: Add a desktop file. --- CMakeLists.txt | 11 +++++++++++ ppsspp.desktop.in | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 ppsspp.desktop.in diff --git a/CMakeLists.txt b/CMakeLists.txt index e8a459dfdf..5ef0e9d384 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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" diff --git a/ppsspp.desktop.in b/ppsspp.desktop.in new file mode 100644 index 0000000000..49debf93c0 --- /dev/null +++ b/ppsspp.desktop.in @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=@TargetBin@ +Exec=@TargetBin@ +Icon=ppsspp +Type=Application +Comment=ppsspp (fast and portable PSP emulator) +Categories=Game