3 # We put the bundled oxygen icon theme in DATADIR rather than ICONDIR,
4 # in order to avoid conflicts. As we add this directory to XDG_DATA_DIRS at runtime,
5 # the bundled theme will be found by Qt only if there is no oxygen theme installed
6 # in system directories.
8 # The hicolor folder contains icons vital for the Quassel UI (such as in the channel and nick
9 # lists). It is installed into the system icon directory (in order to allow overriding) and
10 # additionally always embedded as a fallback resource.
12 if (WANT_MONO OR WANT_QTCLIENT)
13 set(ICON_RCS ${CMAKE_CURRENT_SOURCE_DIR}/hicolor.qrc) # always embed those
17 message(STATUS "Embedding bundled Oxygen icons")
18 set(ICON_RCS ${ICON_RCS} ${CMAKE_CURRENT_SOURCE_DIR}/oxygen.qrc)
21 install(DIRECTORY hicolor DESTINATION ${CMAKE_INSTALL_ICONDIR})
23 message(STATUS "Installing bundled Oxygen icons")
24 install(DIRECTORY oxygen DESTINATION ${CMAKE_INSTALL_DATADIR}/quassel/icons)
29 message(STATUS "Not installing bundled Oxygen icons")
32 set(CLIENT_RCS ${CLIENT_RCS} ${ICON_RCS} PARENT_SCOPE)
37 if (HAVE_KDE OR (UNIX AND NOT APPLE))
38 install(FILES hicolor/48x48/apps/quassel.png DESTINATION ${CMAKE_INSTALL_ICONDIR}/hicolor/48x48/apps)
39 if (CMAKE_INSTALL_PREFIX STREQUAL "/usr")
40 install(FILES hicolor/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps)