Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
1 | cmake_minimum_required(VERSION 3.0) | 1 | cmake_minimum_required(VERSION 3.0) | ||
---|---|---|---|---|---|
2 | project(KDevelop VERSION 5.2.0) | 2 | project(KDevelop VERSION 5.2.0) | ||
3 | 3 | | |||
4 | # KDevelop SOVERSION | 4 | # KDevelop SOVERSION | ||
5 | # E.g. for KDevelop 5.2.0 => SOVERSION 52 (we only promise ABI compatibility between patch version updates) | 5 | # E.g. for KDevelop 5.2.0 => SOVERSION 52 (we only promise ABI compatibility between patch version updates) | ||
6 | set(KDEVELOP_SOVERSION 52) | 6 | set(KDEVELOP_SOVERSION 52) | ||
7 | 7 | | |||
8 | # plugin versions listed in the .desktop files | 8 | # plugin versions listed in the .desktop files | ||
9 | set(KDEV_PLUGIN_VERSION 30) | 9 | set(KDEV_PLUGIN_VERSION 30) | ||
10 | 10 | | |||
11 | # we need some parts of the ECM CMake helpers | 11 | # we need some parts of the ECM CMake helpers | ||
12 | find_package (ECM 5.14.0 REQUIRED NO_MODULE) | 12 | find_package (ECM 5.14.0 REQUIRED NO_MODULE) | ||
13 | set(CMAKE_MODULE_PATH ${KDevelop_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH}) | 13 | set(CMAKE_MODULE_PATH ${KDevelop_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH}) | ||
14 | 14 | | |||
kfunk: `CMAKE_VERSION` (without `${}`) is enough | |||||
15 | if(NOT CMAKE_VERSION VERSION_LESS "3.10.0") | ||||
16 | # CMake 3.9+ warns about automoc on files without Q_OBJECT, and doesn't know about other macros. | ||||
17 | # 3.10+ lets us provide more macro names that require automoc. | ||||
18 | # Remove this when depending on a Frameworks or ECM version that solves this upstream. | ||||
19 | list(APPEND CMAKE_AUTOMOC_MACRO_NAMES | ||||
20 | "K_PLUGIN_FACTORY_WITH_JSON" "K_EXPORT_PLASMA_DATAENGINE_WITH_JSON" "K_EXPORT_PLASMA_RUNNER") | ||||
21 | endif() | ||||
22 | | ||||
15 | include(KDECompilerSettings NO_POLICY_SCOPE) # needs to be first, as set policies influence following macros | 23 | include(KDECompilerSettings NO_POLICY_SCOPE) # needs to be first, as set policies influence following macros | ||
16 | include(ECMOptionalAddSubdirectory) | 24 | include(ECMOptionalAddSubdirectory) | ||
17 | include(ECMInstallIcons) | 25 | include(ECMInstallIcons) | ||
18 | include(ECMAddAppIcon) | 26 | include(ECMAddAppIcon) | ||
19 | include(ECMSetupVersion) | 27 | include(ECMSetupVersion) | ||
20 | include(ECMAddTests) | 28 | include(ECMAddTests) | ||
21 | include(ECMMarkNonGuiExecutable) | 29 | include(ECMMarkNonGuiExecutable) | ||
22 | include(ECMGenerateHeaders) | 30 | include(ECMGenerateHeaders) | ||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |
CMAKE_VERSION (without ${}) is enough