Code cleanup
[quassel.git] / data / CMakeLists.txt
1 if (BUILD_GUI)
2     if (UNIX AND NOT APPLE)
3         if (WANT_QTCLIENT)
4             install(FILES quasselclient.desktop DESTINATION ${CMAKE_INSTALL_APPDIR})
5         endif()
6
7         if (WANT_MONO)
8             install(FILES quassel.desktop DESTINATION ${CMAKE_INSTALL_APPDIR})
9         endif()
10
11         if (WITH_KF5)
12             install(FILES quassel.notifyrc DESTINATION ${CMAKE_INSTALL_KNOTIFY5RCDIR})
13         endif()
14     endif()
15
16     if (EMBED_DATA)
17         quassel_add_resource(Data PREFIX data PATTERNS
18             networks.ini
19             stylesheets/default.qss
20         )
21     else()
22         install(FILES networks.ini DESTINATION ${CMAKE_INSTALL_DATADIR}/quassel)
23         install(DIRECTORY stylesheets DESTINATION ${CMAKE_INSTALL_DATADIR}/quassel)
24     endif()
25
26     if (NOT WIN32)
27         install(DIRECTORY scripts DESTINATION ${CMAKE_INSTALL_DATADIR}/quassel USE_SOURCE_PERMISSIONS)
28     endif()
29 endif()