Add option for compiling xscreensaver support
[kdeartwork.git] / CMakeLists.txt
blob5df677fe0126b9a22ec82ee5f5316789f18305d2
1 project(kdeartwork)
3 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
5 # search packages used by KDE
6 find_package(KDE4 REQUIRED)
7 include (KDE4Defaults)
8 include (MacroLibrary)
10 # are these two really required here ?
11 find_package(ZLIB REQUIRED)
12 if (APPLE)
13    find_package(Carbon REQUIRED)
14 endif (APPLE)
17 add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DHAVE_CONFIG_H=1)
18 link_directories (${KDE4_LIB_DIR})
19 include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
22 include (ConfigureChecks.cmake)
23 configure_file (config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
26 add_subdirectory(IconThemes)
27 add_subdirectory(emoticons)
28 add_subdirectory(icewm-themes)
29 if (Q_WS_X11)
30    add_subdirectory(kscreensaver)
31    add_subdirectory(kwin-styles)
32 endif (Q_WS_X11)
34 add_subdirectory(kworldclock)
35 add_subdirectory(sounds)
36 add_subdirectory(styles)
37 add_subdirectory(wallpapers)
38 add_subdirectory( cmake )