480598eab82f73899f1014b5345fe19458d43e15
[quassel.git] / icons / CMakeLists.txt
1 # Install icons
2 # We put them in DATA_INSTALL_DIR rather than ICON_INSTALL_DIR, to avoid
3 # polluting the global namespace and to allow overriding
4
5 if(WANT_MONO OR WANT_QTCLIENT)
6   if(EMBED_DATA)
7     set(CLIENT_RCS ${CLIENT_RCS} ../icons/hicolor.qrc ../icons/oxygen.qrc PARENT_SCOPE)
8   else(EMBED_DATA)
9     install(DIRECTORY hicolor DESTINATION ${DATA_INSTALL_DIR}/quassel/icons)
10     install(DIRECTORY oxygen DESTINATION ${DATA_INSTALL_DIR}/quassel/icons)
11   endif(EMBED_DATA)
12 endif(WANT_MONO OR WANT_QTCLIENT)
13
14 # Application icon
15 if(NOT APPLE AND NOT WIN32)
16   install(FILES oxygen/48x48/apps/quassel.png DESTINATION ${ICON_INSTALL_DIR}/hicolor/48x48/apps)
17   if(CMAKE_INSTALL_PREFIX STREQUAL "/usr")
18     install(FILES oxygen/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps)
19   endif(CMAKE_INSTALL_PREFIX STREQUAL "/usr")
20 endif(NOT APPLE AND NOT WIN32)