X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=icons%2FCMakeLists.txt;h=89b286c1fdcaa20ed9616b1d9e93e927e220aa41;hb=f932e5c8a0ec3ff689686a71c32ee61a428c4340;hp=e7ed673a350e23197e322841966eec5d3053f85b;hpb=6310438a4efce3d2ecbd5faf1d3ceebe0c6524c2;p=quassel.git diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt index e7ed673a..89b286c1 100644 --- a/icons/CMakeLists.txt +++ b/icons/CMakeLists.txt @@ -1,6 +1,6 @@ # Install icons # -# We put the bundled oxygen icon theme in DATA_INSTALL_DIR rather than ICON_INSTALL_DIR, +# We put the bundled oxygen icon theme in DATADIR rather than ICONDIR, # in order to avoid conflicts. As we add this directory to XDG_DATA_DIRS at runtime, # the bundled theme will be found by Qt only if there is no oxygen theme installed # in system directories. @@ -17,11 +17,27 @@ if (WANT_MONO OR WANT_QTCLIENT) message(STATUS "Embedding bundled Oxygen icons") set(ICON_RCS ${ICON_RCS} ${CMAKE_CURRENT_SOURCE_DIR}/oxygen.qrc) endif() + if (WITH_BREEZE) + message(STATUS "Embedding bundled Breeze icons") + set(ICON_RCS ${ICON_RCS} ${CMAKE_CURRENT_SOURCE_DIR}/breeze.qrc) + endif() + if (WITH_BREEZE_DARK) + message(STATUS "Embedding bundled Breeze Dark icons") + set(ICON_RCS ${ICON_RCS} ${CMAKE_CURRENT_SOURCE_DIR}/breezedark.qrc) + endif() else() - install(DIRECTORY hicolor DESTINATION ${ICON_INSTALL_DIR}) + install(DIRECTORY hicolor DESTINATION ${CMAKE_INSTALL_ICONDIR}) if (WITH_OXYGEN) message(STATUS "Installing bundled Oxygen icons") - install(DIRECTORY oxygen DESTINATION ${DATA_INSTALL_DIR}/quassel/icons) + install(DIRECTORY oxygen DESTINATION ${CMAKE_INSTALL_DATADIR}/quassel/icons) + endif() + if (WITH_BREEZE) + message(STATUS "Installing bundled Breeze icons") + install(DIRECTORY breeze DESTINATION ${CMAKE_INSTALL_DATADIR}/quassel/icons) + endif() + if (WITH_BREEZE_DARK) + message(STATUS "Installing bundled Breeze Dark icons") + install(DIRECTORY breezedark DESTINATION ${CMAKE_INSTALL_DATADIR}/quassel/icons) endif() endif() @@ -29,14 +45,21 @@ if (WANT_MONO OR WANT_QTCLIENT) message(STATUS "Not installing bundled Oxygen icons") endif() - set(CLIENT_RCS ${CLIENT_RCS} ${ICON_RCS} PARENT_SCOPE) -endif() + if (NOT WITH_BREEZE) + message(STATUS "Not installing bundled Breeze icons") + endif() -# Application icon + if (NOT WITH_BREEZE_DARK) + message(STATUS "Not installing bundled Breeze Dark icons") + endif() -if (HAVE_KDE OR (UNIX AND NOT APPLE)) - 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) + set(CLIENT_RCS ${CLIENT_RCS} ${ICON_RCS} PARENT_SCOPE) + + # Application icon + if (HAVE_KDE OR (UNIX AND NOT APPLE)) + install(FILES hicolor/48x48/apps/quassel.png DESTINATION ${CMAKE_INSTALL_ICONDIR}/hicolor/48x48/apps) + if (CMAKE_INSTALL_PREFIX STREQUAL "/usr") + install(FILES hicolor/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps) + endif() endif() endif()