merge r1014461:
[kdevelop:kdevelop.git] / CMakeLists.txt
1 project(kdevelop)
2
3 set(KDE4_BUILD_TESTS "ON" CACHE "BOOL" "Enable building of tests" FORCE )
4
5 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
6
7 set( KDEVELOP_VERSION_MAJOR 3 )
8 set( KDEVELOP_VERSION_MINOR 9 )
9 set( KDEVELOP_VERSION_PATCH 95 )
10
11 set(KDE_MIN_VERSION "4.2.0")
12 find_package(KDE4 4.2.0 REQUIRED)
13 #find_package(BerkeleyDB)
14 #find_package(TDB)
15 include (KDE4Defaults)
16 include (MacroLibrary)
17 include (MacroOptionalAddSubdirectory)
18
19 find_package(KDevPlatform 0.9.95 REQUIRED)
20
21 add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DHAVE_CONFIG_H=1)
22
23 include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${KDEVPLATFORM_INCLUDE_DIR} )
24
25 # create config.h
26 include (ConfigureChecks.cmake)
27 configure_file (config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
28
29 add_subdirectory(cmake)
30 add_subdirectory(pics)
31 add_subdirectory(app)
32 add_subdirectory(formatters)
33 add_subdirectory(languages)
34 add_subdirectory(projectbuilders)
35 add_subdirectory(projectmanagers)
36 add_subdirectory(debuggers)
37 add_subdirectory(tools)
38 add_subdirectory(xtest)
39 add_subdirectory(app_templates)
40 add_subdirectory(documentation)
41 macro_optional_add_subdirectory(doc)
42
43 macro_display_feature_log()
44