From 21bf321acac861db6a5b01fd5ede45abc0ba5756 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sat, 27 Sep 2008 03:55:29 +0200 Subject: [PATCH] Install application icon --- icons/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt index 3a04ba57..c917a068 100644 --- a/icons/CMakeLists.txt +++ b/icons/CMakeLists.txt @@ -10,4 +10,12 @@ if(OXYGEN_ICONS MATCHES "Builtin") qt4_add_resources(RC_ICONS oxygen.qrc) endif(OXYGEN_ICONS MATCHES "Builtin") +# Application icon +if(NOT APPLE AND NOT WIN32) + install(FILES hicolor/48x48/apps/quassel.png DESTINATION ${ICON_INSTALL_DIR}/hicolor/48x48/apps) + if(CMAKE_INSTALL_PREFIX STREQUAL "/usr") + install(FILES hicolor/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps) + endif(CMAKE_INSTALL_PREFIX STREQUAL "/usr") +endif(NOT APPLE AND NOT WIN32) + add_custom_target(icons DEPENDS ${RC_ICONS}) -- 2.20.1