X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=icons%2FCMakeLists.txt;h=5824c6ef7bf1bd7cc1a538665fd483125bc8a880;hp=c28de2eaee47f1be5c21a47dec4c07a44cdea59f;hb=82ce4f77e3238d4d1987ff9f78eb8242ad028f1f;hpb=392367381225027246e8c765a7c3b7e5bf186ee2 diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt index c28de2ea..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)