added unix desktop icons and menu items to install target

This commit is contained in:
Max-Wilhelm Bruker
2012-01-29 18:30:02 +01:00
parent 8824cd7e84
commit e8844deeef
6 changed files with 18 additions and 2 deletions

View File

@@ -20,3 +20,6 @@ ADD_EXECUTABLE(oracle WIN32 MACOSX_BUNDLE ${oracle_SOURCES} ${oracle_HEADERS_MOC
TARGET_LINK_LIBRARIES(oracle ${QT_LIBRARIES})
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/oracle DESTINATION bin)
IF (NOT WIN32 AND NOT APPLE)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/oracle.desktop DESTINATION share/applications)
ENDIF (NOT WIN32 AND NOT APPLE)

8
oracle/oracle.desktop Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=Cockatrice Oracle downloader
Exec=oracle
Icon=cockatrice
Categories=Game;CardGame;