Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | |||||
83 | 83 | | |||
84 | if(NOT CMAKE_VERSION VERSION_LESS "3.10.0" AND KF5_VERSION VERSION_LESS "5.42.0") | 84 | if(NOT CMAKE_VERSION VERSION_LESS "3.10.0" AND KF5_VERSION VERSION_LESS "5.42.0") | ||
85 | # CMake 3.9+ warns about automoc on files without Q_OBJECT, and doesn't know about other macros. | 85 | # CMake 3.9+ warns about automoc on files without Q_OBJECT, and doesn't know about other macros. | ||
86 | # 3.10+ lets us provide more macro names that require automoc. | 86 | # 3.10+ lets us provide more macro names that require automoc. | ||
87 | # KF5 >= 5.42 takes care itself of adding its macros in its cmake config files | 87 | # KF5 >= 5.42 takes care itself of adding its macros in its cmake config files | ||
88 | list(APPEND CMAKE_AUTOMOC_MACRO_NAMES | 88 | list(APPEND CMAKE_AUTOMOC_MACRO_NAMES | ||
89 | "K_PLUGIN_FACTORY_WITH_JSON" "K_EXPORT_PLASMA_DATAENGINE_WITH_JSON" "K_EXPORT_PLASMA_RUNNER") | 89 | "K_PLUGIN_FACTORY_WITH_JSON" "K_EXPORT_PLASMA_DATAENGINE_WITH_JSON" "K_EXPORT_PLASMA_RUNNER") | ||
90 | endif() | 90 | endif() | ||
91 | if(NOT CMAKE_VERSION VERSION_LESS "3.9.0") | ||||
92 | # CMake's automoc needs help to find names of plugin metadata files in case Q_PLUGIN_METADATA | ||||
93 | # is indirectly used via other C++ preprocessor macros | ||||
94 | # 3.9+ lets us provide some filter rule pairs (keyword, regexp) to match the names of such files | ||||
95 | # in the plain text of the sources. See AUTOMOC_DEPEND_FILTERS docs for details. | ||||
96 | list(APPEND CMAKE_AUTOMOC_DEPEND_FILTERS | ||||
97 | "K_EXPORT_PLASMA_DATAENGINE_WITH_JSON" | ||||
98 | "[\n^][ \t]*K_EXPORT_PLASMA_DATAENGINE_WITH_JSON[ \t\n]*\\([^,]*,[ \t\n]*[^,]*,[ \t\n]*\"([^\"]+)\"" | ||||
99 | "K_PLUGIN_FACTORY_WITH_JSON" | ||||
100 | "[\n^][ \t]*K_PLUGIN_FACTORY_WITH_JSON[ \t\n]*\\([^,]*,[ \t\n]*\"([^\"]+)\"" | ||||
101 | ) | ||||
102 | endif() | ||||
103 | | ||||
91 | 104 | | |||
92 | add_definitions( | 105 | add_definitions( | ||
93 | -DQT_DEPRECATED_WARNINGS | 106 | -DQT_DEPRECATED_WARNINGS | ||
94 | -DQT_DISABLE_DEPRECATED_BEFORE=0x050500 | 107 | -DQT_DISABLE_DEPRECATED_BEFORE=0x050500 | ||
95 | -DQT_NO_SIGNALS_SLOTS_KEYWORDS | 108 | -DQT_NO_SIGNALS_SLOTS_KEYWORDS | ||
96 | -DQT_NO_URL_CAST_FROM_STRING | 109 | -DQT_NO_URL_CAST_FROM_STRING | ||
97 | -DQT_STRICT_ITERATORS | 110 | -DQT_STRICT_ITERATORS | ||
98 | -DQT_USE_QSTRINGBUILDER | 111 | -DQT_USE_QSTRINGBUILDER | ||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |