Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
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 | 55 | | |||
56 | # Subdirectories | 56 | # Subdirectories | ||
57 | add_subdirectory(src) | 57 | add_subdirectory(src) | ||
58 | if (BUILD_TESTING) | ||||
58 | add_subdirectory(autotests) | 59 | add_subdirectory(autotests) | ||
59 | add_subdirectory(tests) | 60 | add_subdirectory(tests) | ||
61 | endif() | ||||
60 | add_subdirectory(templates) | 62 | add_subdirectory(templates) | ||
61 | 63 | | |||
62 | # Create a Config.cmake and a ConfigVersion.cmake file and install them | 64 | # Create a Config.cmake and a ConfigVersion.cmake file and install them | ||
63 | set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5Runner") | 65 | set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5Runner") | ||
64 | 66 | | |||
65 | if (BUILD_QCH) | 67 | if (BUILD_QCH) | ||
66 | ecm_install_qch_export( | 68 | ecm_install_qch_export( | ||
67 | TARGETS KF5Runner_QCH | 69 | TARGETS KF5Runner_QCH | ||
Show All 33 Lines |