Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | 48 | | |||
49 | set(KRunner_AUTOMOC_MACRO_NAMES "K_EXPORT_PLASMA_RUNNER" "K_EXPORT_RUNNER_CONFIG") | 49 | set(KRunner_AUTOMOC_MACRO_NAMES "K_EXPORT_PLASMA_RUNNER" "K_EXPORT_RUNNER_CONFIG") | ||
50 | if(NOT CMAKE_VERSION VERSION_LESS "3.10.0") | 50 | if(NOT CMAKE_VERSION VERSION_LESS "3.10.0") | ||
51 | # CMake 3.9+ warns about automoc on files without Q_OBJECT, and doesn't know about other macros. | 51 | # CMake 3.9+ warns about automoc on files without Q_OBJECT, and doesn't know about other macros. | ||
52 | # 3.10+ lets us provide more macro names that require automoc. | 52 | # 3.10+ lets us provide more macro names that require automoc. | ||
53 | list(APPEND CMAKE_AUTOMOC_MACRO_NAMES ${KRunner_AUTOMOC_MACRO_NAMES}) | 53 | list(APPEND CMAKE_AUTOMOC_MACRO_NAMES ${KRunner_AUTOMOC_MACRO_NAMES}) | ||
54 | endif() | 54 | endif() | ||
55 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | 55 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | ||
56 | add_definitions(-DQT_NO_FOREACH) | ||||
56 | 57 | | |||
57 | # Subdirectories | 58 | # Subdirectories | ||
58 | add_subdirectory(src) | 59 | add_subdirectory(src) | ||
59 | if (BUILD_TESTING) | 60 | if (BUILD_TESTING) | ||
60 | add_subdirectory(autotests) | 61 | add_subdirectory(autotests) | ||
61 | add_subdirectory(tests) | 62 | add_subdirectory(tests) | ||
62 | endif() | 63 | endif() | ||
63 | add_subdirectory(templates) | 64 | add_subdirectory(templates) | ||
Show All 40 Lines |