Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | |||||
112 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | 112 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | ||
113 | add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054400) | 113 | add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054400) | ||
114 | add_subdirectory(plugin) | 114 | add_subdirectory(plugin) | ||
115 | 115 | | |||
116 | if (KF5IconThemes_FOUND AND KF5WidgetsAddons_FOUND) | 116 | if (KF5IconThemes_FOUND AND KF5WidgetsAddons_FOUND) | ||
117 | add_subdirectory(kirigami-plasmadesktop-integration) | 117 | add_subdirectory(kirigami-plasmadesktop-integration) | ||
118 | endif(KF5IconThemes_FOUND AND KF5WidgetsAddons_FOUND) | 118 | endif(KF5IconThemes_FOUND AND KF5WidgetsAddons_FOUND) | ||
119 | 119 | | |||
120 | #FIXME: this assumes there will always be a QQC2 release for each Qt release, needs | 120 | # FIXME: this assumes there will always be a QQC2 release for each Qt release, needs | ||
121 | #something to discover what's the latest qqc2 version available | 121 | # something to discover what's the latest qqc2 version available | ||
122 | # Since 5.12, QQC2 version is sync with Qt's minor version: | ||||
123 | # https://github.com/qt/qtquickcontrols2/commit/3c7bfc156797b2f3ef08a8cf620b79da80e4b061 | ||||
124 | if (Qt5QuickControls2_VERSION_MINOR LESS 12) | ||||
122 | math(EXPR QQC2_VERSION_MINOR "${Qt5QuickControls2_VERSION_MINOR} - 7") | 125 | math(EXPR QQC2_VERSION_MINOR "${Qt5QuickControls2_VERSION_MINOR} - 7") | ||
126 | else() | ||||
127 | set(QQC2_VERSION_MINOR "${Qt5QuickControls2_VERSION_MINOR}") | ||||
128 | endif() | ||||
123 | set(QQC2_VERSION "2.${QQC2_VERSION_MINOR}") | 129 | set(QQC2_VERSION "2.${QQC2_VERSION_MINOR}") | ||
124 | 130 | | |||
125 | if (QQC2_VERSION_MINOR LESS 3) | 131 | if (QQC2_VERSION_MINOR LESS 3) | ||
126 | set(DISABLE_UNDER_QQC2_2_3 "//Needs QtQuick.Controls 2.3 ") | 132 | set(DISABLE_UNDER_QQC2_2_3 "//Needs QtQuick.Controls 2.3 ") | ||
127 | else() | 133 | else() | ||
128 | set(DISABLE_UNDER_QQC2_2_3 "") | 134 | set(DISABLE_UNDER_QQC2_2_3 "") | ||
129 | endif() | 135 | endif() | ||
130 | 136 | | |||
Show All 25 Lines |