Commit 4c2eb085 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Require KDE Frameworks 5.42 and Qt 5.9

parent b81afd92
......@@ -4,6 +4,9 @@ project(PlasmaIntegration)
set(PROJECT_VERSION "5.12.80")
set(PROJECT_VERSION_MAJOR 5)
set(QT_MIN_VERSION "5.9.0")
set(KF5_MIN_VERSION "5.42.0")
include(FeatureSummary)
find_package(ECM 5.17.0 NO_MODULE)
set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules")
......@@ -21,12 +24,9 @@ include(KDEInstallDirs)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
set(REQUIRED_QT_VERSION 5.9.0)
find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets DBus X11Extras QuickControls2)
set(KF5_DEP_VERSION "5.33.0")
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Widgets DBus X11Extras QuickControls2)
find_package(KF5 ${KF5_DEP_VERSION} REQUIRED COMPONENTS
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Config ConfigWidgets I18n IconThemes KIO Notifications Wayland
WidgetsAddons WindowSystem ConfigWidgets
)
......
include(ECMMarkAsTest)
include(ECMMarkNonGuiExecutable)
find_package(Qt5Test ${REQUIRED_QT_VERSION} CONFIG QUIET)
find_package(Qt5Qml ${REQUIRED_QT_VERSION} CONFIG QUIET)
find_package(Qt5Test ${QT_MIN_VERSION} CONFIG QUIET)
find_package(Qt5Qml ${QT_MIN_VERSION} CONFIG QUIET)
if(NOT Qt5Test_FOUND)
message(STATUS "Qt5Test not found, autotests will not be built.")
......
......@@ -5,7 +5,7 @@ set_package_properties(X11 PROPERTIES DESCRIPTION "Required for updating the Cur
)
set(HAVE_X11 ${X11_FOUND})
if(HAVE_X11)
find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED X11Extras)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED X11Extras)
find_package(XCB COMPONENTS XCB)
set_package_properties(XCB PROPERTIES TYPE REQUIRED)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment