1 # Build and/or install icons according to global settings
3 if(QUASSEL_ICONS MATCHES "External")
4 install(DIRECTORY hicolor DESTINATION ${ICON_INSTALL_DIR})
5 else(QUASSEL_ICONS MATCHES "External")
6 qt4_add_resources(RC_ICONS hicolor.qrc)
7 endif(QUASSEL_ICONS MATCHES "External")
9 if(OXYGEN_ICONS MATCHES "Builtin")
10 qt4_add_resources(RC_ICONS oxygen.qrc)
11 endif(OXYGEN_ICONS MATCHES "Builtin")
14 if(NOT APPLE AND NOT WIN32)
15 install(FILES hicolor/48x48/apps/quassel.png DESTINATION ${ICON_INSTALL_DIR}/hicolor/48x48/apps)
16 if(CMAKE_INSTALL_PREFIX STREQUAL "/usr")
17 install(FILES hicolor/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps)
18 endif(CMAKE_INSTALL_PREFIX STREQUAL "/usr")
19 endif(NOT APPLE AND NOT WIN32)
21 add_custom_target(icons DEPENDS ${RC_ICONS})