Skip to content

Commit

Permalink
Add desktop files and install target
Browse files Browse the repository at this point in the history
  • Loading branch information
chrg127 committed Feb 7, 2023
1 parent 72e3c57 commit ae76840
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ link_directories(${GME_LIBRARY_DIRS})
add_executable(gmplayer src/main.cpp src/gui.cpp src/player.cpp src/keyrecorder.cpp src/io.cpp resources/icons.qrc)

target_link_libraries(gmplayer pthread Qt5::Widgets ${SDL2_LIBRARIES} ${GME_LIBRARIES} ${MPRISQT5_LIBRARIES})

install(FILES resources/linux/gmplayer.desktop DESTINATION share/applications/ COMPONENT desktop)
install(FILES resources/linux/gmplayer.png DESTINATION share/icons/hicolor/256x256/apps COMPONENT desktop)
install(TARGETS gmplayer DESTINATION bin COMPONENT binaries)
9 changes: 9 additions & 0 deletions resources/linux/gmplayer.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Name=gmplayer
Comment=Music player for retro game music
Exec=gmplayer %U
Icon=gmplayer
Terminal=false
Type=Application
Categories=Music;
GenericName=Retro music player
Binary file added resources/linux/gmplayer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ae76840

Please sign in to comment.