From 807c72991015d46419fdf0e1bd760b359e434f49 Mon Sep 17 00:00:00 2001 From: Marius Cirsta Date: Fri, 3 Oct 2014 00:13:02 +0300 Subject: [PATCH] install png icon and desktop file for Linux ( and other Unix ) --- CMakeLists.txt | 8 ++++++++ distri/sqlitebrowser.desktop | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7624d02..b82733fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,6 +226,14 @@ target_link_libraries(${PROJECT_NAME} install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin LIBRARY DESTINATION lib) + +if(UNIX AND NOT APPLE) +install(FILES src/icons/${PROJECT_NAME}.png + DESTINATION share/pixmaps/) + +install(FILES distri/${PROJECT_NAME}.desktop + DESTINATION share/applications/) +endif(UNIX AND NOT APPLE) #cpack set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "DB Browser for SQLite") diff --git a/distri/sqlitebrowser.desktop b/distri/sqlitebrowser.desktop index 0e2f8b51..4e7dbca4 100644 --- a/distri/sqlitebrowser.desktop +++ b/distri/sqlitebrowser.desktop @@ -3,7 +3,7 @@ Name=DB Browser for SQLite Comment=DB Browser for SQLite is a light GUI editor for SQLite databases Comment[de]=DB Browser for SQLite ist ein GUI-Editor für SQLite-Datenbanken Exec=sqlitebrowser %f -Icon=/usr/share/sqlitebrowser/sqlitebrowser.svg +Icon=sqlitebrowser Terminal=false X-MultipleArgs=false Type=Application