- if (NOT WITH_OXYGEN)
- message(STATUS "Not installing bundled Oxygen icons")
- endif()
-
- if (NOT WITH_BREEZE)
- message(STATUS "Not installing bundled Breeze icons")
- endif()
-
- if (NOT WITH_BREEZE_DARK)
- message(STATUS "Not installing bundled Breeze Dark icons")
+ # Install bundled icon themes into our data dir (instead of CMAKE_INSTALL_ICONDIR) to avoid conflicts
+ # with themes provided by the system
+ if (WITH_BUNDLED_ICONS)
+ message(STATUS "Installing bundled Breeze icon theme")
+ install(DIRECTORY ${BUNDLED_ICON_THEME_DIR}/breeze
+ ${BUNDLED_ICON_THEME_DIR}/breeze-dark
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/quassel/icons
+ )
+ if (WITH_OXYGEN_ICONS)
+ message(STATUS "Installing bundled Oxygen icon theme")
+ install(DIRECTORY ${BUNDLED_ICON_THEME_DIR}/oxygen DESTINATION ${CMAKE_INSTALL_DATADIR}/quassel/icons)
+ endif()
+ endif()