-if(OXYGEN_ICONS MATCHES "Builtin")
- qt4_add_resources(RC_ICONS oxygen.qrc)
-endif(OXYGEN_ICONS MATCHES "Builtin")
+ if (EMBED_DATA)
+ if (WITH_OXYGEN)
+ 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 ${CMAKE_INSTALL_ICONDIR})
+ if (WITH_OXYGEN)
+ message(STATUS "Installing bundled Oxygen 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()