1 cmake_minimum_required(VERSION 2.6)
5 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
7 set(KDevPlatform_VERSION_MAJOR 0)
8 set(KDevPlatform_VERSION_MINOR 9)
9 set(KDevPlatform_VERSION_PATCH 82)
11 set(KDE_MIN_VERSION "4.1.60")
12 find_package(KDE4 4.1.60 REQUIRED)
13 find_package(ZLIB REQUIRED)
14 #find_package(BerkeleyDB)
16 include (KDE4Defaults)
17 include (MacroLibrary)
18 include (MacroOptionalAddSubdirectory)
19 include (MacroLogFeature)
21 add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DHAVE_CONFIG_H=1)
23 include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} )
25 set(KDEVPLATFORM_LIB_VERSION 1.0.0)
26 set(KDEVPLATFORM_LIB_SOVERSION 1)
28 add_subdirectory(cmake)
29 add_subdirectory(sublime)
30 add_subdirectory(interfaces)
31 add_subdirectory(project)
32 add_subdirectory(language)
33 add_subdirectory(shell)
34 add_subdirectory(util)
35 add_subdirectory(outputview)
37 add_subdirectory(plugins)
38 add_subdirectory(veritas)
40 macro_optional_add_subdirectory(kross)
42 macro_optional_add_subdirectory(doc)
44 configure_file( "${KDevPlatform_SOURCE_DIR}/KDevPlatformConfigVersion.cmake.in" "${KDevPlatform_BINARY_DIR}/KDevPlatformConfigVersion.cmake" )
45 configure_file( "${KDevPlatform_SOURCE_DIR}/KDevPlatformConfig.cmake.in" "${KDevPlatform_BINARY_DIR}/KDevPlatformConfig.cmake" )
46 configure_file( "${KDevPlatform_SOURCE_DIR}/kdevplatformversion.h.cmake" "${KDevPlatform_BINARY_DIR}/kdevplatformversion.h" )
49 "${KDevPlatform_BINARY_DIR}/KDevPlatformConfig.cmake"
50 "${KDevPlatform_BINARY_DIR}/KDevPlatformConfigVersion.cmake"
51 DESTINATION "${LIB_INSTALL_DIR}/kdevplatform" )
53 "${KDevPlatform_BINARY_DIR}/kdevplatformversion.h"
54 DESTINATION "${INCLUDE_INSTALL_DIR}/kdevplatform" )