Project:
Kate (KDE)
Code Location:
git://anongit.kde.org/kate.gitmaster
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Kate project project (kate) # shared libs set (LIBRARY_TYPE SHARED) # search packages used by KDE find_package(KDE4 4.8.0 REQUIRED) include (KDE4Defaults) include (MacroLibrary) include (CheckFunctionExists) # activity feature for Kate/KWrite macro_optional_find_package(KActivities 6.1.0 NO_MODULE) macro_log_feature(KActivities_FOUND "KActivities" "Activities interface library" "https://projects.kde.org/projects/kde/kdelibs/kactivities" FALSE "6.1.0" "Required for Activities integration.") # no in source builds macro_ensure_out_of_source_build("kate requires an out of source build. Please create a separate build directory and run 'cmake path_to_kate [options]' there.") # config.h if(NOT APPLE) check_function_exists (fdatasync HAVE_FDATASYNC) check_function_exists (ctermid HAVE_CTERMID) endif(NOT APPLE) configure_file (config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) # enforce build of tests set (KDE4_BUILD_TESTS "ON" CACHE "BOOL" "Enable building of tests" FORCE) # KDE/QT definitions we want add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) add_definitions (-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DKTEXTEDITOR_NO_DEPRECATED) # global include directories include_directories (${CMAKE_CURRENT_BINARY_DIR} ${KDE4_INCLUDES} ${KDE4_KIO_INCLUDES} ${KACTIVITIES_INCLUDE_DIRS}) # allow to build own ktexteditor option(BUILD_KTEXTEDITOR "Build KTextEditor interfaces, instead of reusing the system version" OFF) if (BUILD_KTEXTEDITOR) # use our own copies of some stuff set (KDE4_KTEXTEDITOR_LIBS "ktexteditor") # add more includes to let the local ktexteditor stuff be found include_directories (BEFORE ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/includes) # ktexteditor interfaces, copy from kdelibs/interfaces/ktexteditor macro_optional_add_subdirectory (ktexteditor) else() # kdelibs 4.11 is required if("${KDE_VERSION}" VERSION_LESS 4.10.60) message(FATAL_ERROR "kdelibs version ${KDE_VERSION}, but 4.11 is required. Set the option BUILD_KTEXTEDITOR to ON to build anyway.") endif() endif (BUILD_KTEXTEDITOR) # kate part macro_optional_add_subdirectory (part) # kate application macro_optional_add_subdirectory (kate) # kwrite macro_optional_add_subdirectory (kwrite) # addons, e.g. ktexteditor plugins, kate plugins, plasma applets, ... macro_optional_add_subdirectory (addons) # docs macro_optional_add_subdirectory (doc) # tests macro_optional_add_subdirectory (tests) # display features ;) macro_display_feature_log()
