1 project(KDEBASE_RUNTIME)
3 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
4 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules )
6 #search packages used by KDE
7 find_package(KDE4 REQUIRED)
8 find_package(Strigi REQUIRED)
9 find_package(KdepimLibs REQUIRED)
13 include(MacroOptionalFindPackage)
14 include(MacroOptionalAddSubdirectory)
15 include(CheckFunctionExists)
16 include(CheckIncludeFiles)
18 set(SOPRANO_MIN_VERSION "2.0")
19 macro_optional_find_package(Soprano)
20 macro_log_feature(Soprano_FOUND "Soprano" "Soprano Libraries" "kdesupport" FALSE "" "Required to build Nepomuk.")
22 check_include_files(sys/wait.h HAVE_SYS_WAIT_H)
23 check_include_files(sys/time.h HAVE_SYS_TIME_H)
25 configure_file (config-runtime.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-runtime.h )
27 add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
28 include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE4_INCLUDES})
30 add_subdirectory(cmake)
31 add_subdirectory(kuiserver)
33 add_subdirectory(drkonqi)
35 add_subdirectory(khelpcenter)
36 add_subdirectory(kioexec)
37 add_subdirectory(kioslave)
38 add_subdirectory(knetattach)
39 add_subdirectory(kpasswdserver)
40 add_subdirectory(kdebugdialog)
41 add_subdirectory(ktimezoned)
42 add_subdirectory(kcontrol)
43 add_subdirectory(kcmshell)
44 add_subdirectory(knewstuff)
46 add_subdirectory(kdeeject)
47 add_subdirectory(kdesu)
48 add_subdirectory(soliduiserver)
50 add_subdirectory(kurifilter-plugins)
51 add_subdirectory(l10n)
52 add_subdirectory(phonon)
53 add_subdirectory(pics)
54 add_subdirectory(kstyles)
56 # Command-line tools (e.g. for shell scripts)
57 add_subdirectory(kquitapp)
58 add_subdirectory(kioclient)
59 add_subdirectory(ktraderclient)
60 add_subdirectory(kreadconfig)
61 add_subdirectory(kmimetypefinder)
63 # conflicts with kfile library from kdelibs
64 add_subdirectory(kfile)
67 add_subdirectory(kstart)
69 add_subdirectory(knotify)
70 add_subdirectory(kde-menu)
73 if(Soprano_FOUND AND STRIGI_STRIGIQTDBUSCLIENT_LIBRARY)
74 macro_optional_add_subdirectory(nepomuk)
75 endif(Soprano_FOUND AND STRIGI_STRIGIQTDBUSCLIENT_LIBRARY)
77 macro_optional_add_subdirectory(renamedlgplugins)
79 if(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
80 macro_display_feature_log()
81 endif(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")