X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=icons%2FCMakeLists.txt;h=5824c6ef7bf1bd7cc1a538665fd483125bc8a880;hp=129bc8848997dc1e4e2576bbe183965bb43237b1;hb=6d6a24e6bc143f5df2171e1ddfaf35e9b2541618;hpb=e8e1f038e6bf4a7bc938e316774374d3116ff39a diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt index 129bc884..5824c6ef 100644 --- a/icons/CMakeLists.txt +++ b/icons/CMakeLists.txt @@ -1,11 +1,18 @@ -# Build and/or install icons according to global settings +# Install icons +# We put them in DATA_INSTALL_DIR rather than ICON_INSTALL_DIR, to avoid +# polluting the global namespace and to allow overriding -if(QUASSEL_ICONS MATCHES "External") - install(DIRECTORY hicolor DESTINATION ${ICON_INSTALL_DIR}) -else(QUASSEL_ICONS MATCHES "External") -# set(CLIENT_DEPS ${CLIENT_DEPS} hicolor.qrc) -endif(QUASSEL_ICONS MATCHES "External") +if(EMBED_DATA) + set(CLIENT_RCS ${CLIENT_RCS} ../icons/hicolor.qrc ../icons/oxygen.qrc PARENT_SCOPE) +else(EMBED_DATA) + install(DIRECTORY hicolor DESTINATION ${DATA_INSTALL_DIR}/quassel/icons) + install(DIRECTORY oxygen DESTINATION ${DATA_INSTALL_DIR}/quassel/icons) +endif(EMBED_DATA) -if(OXYGEN_ICONS MATCHES "Builtin") -# set(CLIENT_DEPS ${CLIENT_DEPS} oxygen.qrc) -endif(OXYGEN_ICONS MATCHES "Builtin") +# Application icon +if(NOT APPLE AND NOT WIN32) + install(FILES oxygen/48x48/apps/quassel.png DESTINATION ${ICON_INSTALL_DIR}/hicolor/48x48/apps) + if(CMAKE_INSTALL_PREFIX STREQUAL "/usr") + install(FILES oxygen/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps) + endif(CMAKE_INSTALL_PREFIX STREQUAL "/usr") +endif(NOT APPLE AND NOT WIN32)