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 | 2 | | |||
3 | project(kdeplasma-addons) | 3 | project(kdeplasma-addons) | ||
4 | set(PROJECT_VERSION "5.18.80") | 4 | set(PROJECT_VERSION "5.18.80") | ||
5 | set(PROJECT_VERSION_MAJOR 5) | 5 | set(PROJECT_VERSION_MAJOR 5) | ||
6 | 6 | | |||
7 | ################# Disallow in-source build ################# | 7 | ################# Disallow in-source build ################# | ||
8 | if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") | 8 | if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") | ||
9 | message(FATAL_ERROR "plasma requires an out of source build. Please create a separate build directory and run 'cmake path_to_plasma [options]' there.") | 9 | message(FATAL_ERROR "plasma requires an out of source build. Please create a separate build directory and run 'cmake path_to_plasma [options]' there.") | ||
10 | endif() | 10 | endif() | ||
11 | 11 | | |||
12 | set(QT_MIN_VERSION 5.12.0) | 12 | set(QT_MIN_VERSION 5.12.0) | ||
13 | set(KF5_MIN_VERSION 5.70.0) | 13 | set(KF5_MIN_VERSION 5.69.0) | ||
14 | 14 | | |||
15 | include(FeatureSummary) | 15 | include(FeatureSummary) | ||
16 | 16 | | |||
17 | find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) | 17 | find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) | ||
18 | set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) | 18 | set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) | ||
19 | 19 | | |||
20 | include(KDEInstallDirs) | 20 | include(KDEInstallDirs) | ||
21 | include(KDECMakeSettings) | 21 | include(KDECMakeSettings) | ||
Show All 14 Lines | 30 | find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED | |||
36 | Widgets | 36 | Widgets | ||
37 | Test | 37 | Test | ||
38 | ) | 38 | ) | ||
39 | 39 | | |||
40 | find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS | 40 | find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS | ||
41 | Archive | 41 | Archive | ||
42 | Config | 42 | Config | ||
43 | CoreAddons | 43 | CoreAddons | ||
44 | DBusAddons | ||||
davidre: Seems unused? | |||||
It is necessary for the KDED module. Without it, the compilation fails. guoyunhe: It is necessary for the KDED module. Without it, the compilation fails. | |||||
44 | Declarative | 45 | Declarative | ||
45 | Holidays | 46 | Holidays | ||
46 | I18n | 47 | I18n | ||
47 | IconThemes | 48 | IconThemes | ||
48 | KIO | 49 | KIO | ||
49 | KCMUtils | 50 | KCMUtils | ||
50 | Kross | 51 | Kross | ||
51 | Notifications | 52 | Notifications | ||
52 | Plasma | 53 | Plasma | ||
53 | Runner | 54 | Runner | ||
54 | Service | 55 | Service | ||
55 | Sonnet | 56 | Sonnet | ||
56 | UnitConversion | 57 | UnitConversion | ||
57 | WindowSystem | 58 | WindowSystem | ||
58 | NewStuff | 59 | NewStuff | ||
59 | ) | 60 | ) | ||
60 | 61 | | |||
61 | find_package(KF5Purpose CONFIG QUIET) | 62 | find_package(KF5Purpose CONFIG QUIET) | ||
62 | set_package_properties(KF5Purpose PROPERTIES | 63 | set_package_properties(KF5Purpose PROPERTIES | ||
63 | DESCRIPTION "Framework for cross-application services and actions" | 64 | DESCRIPTION "Framework for cross-application services and actions" | ||
64 | PURPOSE "Needed for QuickShare applet" | 65 | PURPOSE "Needed for QuickShare applet" | ||
65 | URL "https://commits.kde.org/purpose" | 66 | URL "https://commits.kde.org/purpose" | ||
66 | TYPE RUNTIME | 67 | TYPE RUNTIME | ||
67 | ) | 68 | ) | ||
68 | | ||||
davidre: unrelated | |||||
guoyunhe: Will revert. | |||||
69 | add_definitions( | 69 | add_definitions( | ||
70 | -DQT_DEPRECATED_WARNINGS | 70 | -DQT_DEPRECATED_WARNINGS | ||
71 | -DQT_NO_URL_CAST_FROM_STRING | 71 | -DQT_NO_URL_CAST_FROM_STRING | ||
72 | ) | 72 | ) | ||
73 | 73 | | |||
74 | ######################################################################### | 74 | ######################################################################### | ||
75 | 75 | | |||
76 | ################# list the subdirectories ################# | 76 | ################# list the subdirectories ################# | ||
77 | add_subdirectory(applets) | 77 | add_subdirectory(applets) | ||
78 | add_subdirectory(dataengines) | 78 | add_subdirectory(dataengines) | ||
79 | add_subdirectory(kdeds) | ||||
79 | add_subdirectory(runners) | 80 | add_subdirectory(runners) | ||
80 | 81 | | |||
81 | add_subdirectory(wallpapers) | 82 | add_subdirectory(wallpapers) | ||
82 | 83 | | |||
83 | add_subdirectory(windowswitchers) | 84 | add_subdirectory(windowswitchers) | ||
84 | add_subdirectory(desktopswitchers) | 85 | add_subdirectory(desktopswitchers) | ||
85 | 86 | | |||
86 | add_subdirectory(plasmacalendarplugins) | 87 | add_subdirectory(plasmacalendarplugins) | ||
87 | 88 | | |||
88 | add_subdirectory(templates) | 89 | add_subdirectory(templates) | ||
89 | 90 | | |||
90 | # add clang-format target for all our real source files | 91 | # add clang-format target for all our real source files | ||
91 | file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h) | 92 | file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h) | ||
92 | kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) | 93 | kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) | ||
93 | 94 | | |||
94 | feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) | 95 | feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) |
Seems unused?