Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 12 Lines | |||||
13 | set(REQUIRED_QT_VERSION 5.11.0) | 13 | set(REQUIRED_QT_VERSION 5.11.0) | ||
14 | 14 | | |||
15 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Xml) | 15 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Xml) | ||
16 | option(KCONFIG_USE_GUI "Build components using Qt5Gui" ON) | 16 | option(KCONFIG_USE_GUI "Build components using Qt5Gui" ON) | ||
17 | if(KCONFIG_USE_GUI) | 17 | if(KCONFIG_USE_GUI) | ||
18 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Gui) | 18 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Gui) | ||
19 | endif() | 19 | endif() | ||
20 | 20 | | |||
21 | if (NOT ANDROID) | ||||
21 | option(KCONFIG_USE_DBUS "Build components using Qt5DBus" ON) | 22 | option(KCONFIG_USE_DBUS "Build components using Qt5DBus" ON) | ||
22 | if(KCONFIG_USE_DBUS) | 23 | if(KCONFIG_USE_DBUS) | ||
23 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED DBus) | 24 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED DBus) | ||
24 | endif() | 25 | endif() | ||
26 | else() | ||||
27 | set(KCONFIG_USE_DBUS Off) | ||||
28 | endif() | ||||
25 | 29 | | |||
26 | 30 | | |||
27 | include(KDEInstallDirs) | 31 | include(KDEInstallDirs) | ||
28 | include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) | 32 | include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) | ||
29 | include(KDECMakeSettings) | 33 | include(KDECMakeSettings) | ||
30 | 34 | | |||
31 | 35 | | |||
32 | include(GenerateExportHeader) | 36 | include(GenerateExportHeader) | ||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |