This could / should / oh well you know the drill... just test if minimize to tray...
[quassel.git] / icons / CMakeLists.txt
1 # Build and/or install icons according to global settings
2
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")
8
9 if(OXYGEN_ICONS MATCHES "Builtin")
10   qt4_add_resources(RC_ICONS oxygen.qrc)
11 endif(OXYGEN_ICONS MATCHES "Builtin")
12
13 # Application icon
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)
20
21 add_custom_target(icons DEPENDS ${RC_ICONS})