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

Use QT_MIN_VERSION & KF5_MIN_VERSION variables

Start off with versions derived from old "find_package(ECM 5.30)",
so KF5 5.30 and its minimum Qt dependency version 5.5,
as there are some external non-Plasma consumers of this library
(like KDevelop) which have more relaxed minimal version dependencies
and which still want to be able to build with recent libksysguard
against the same older dependencies (like on KDE CI)
parent f9145de8
......@@ -4,7 +4,11 @@ project(libksysguard)
set(PROJECT_VERSION "5.12.80")
set(PROJECT_VERSION_MAJOR 5)
find_package(ECM 5.30 REQUIRED NO_MODULE)
# check with non-Plasma consumers (e.g. KDevelop) before bumping these versions
set(QT_MIN_VERSION "5.5.0")
set(KF5_MIN_VERSION "5.30.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(KDEInstallDirs)
......@@ -21,8 +25,8 @@ include(CheckIncludeFiles)
include(CheckLibraryExists)
include(FeatureSummary)
find_package(Qt5 REQUIRED CONFIG COMPONENTS DBus Network Widgets)
find_package(Qt5WebKitWidgets CONFIG)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED CONFIG COMPONENTS DBus Network Widgets)
find_package(Qt5WebKitWidgets ${QT_MIN_VERSION} CONFIG)
set_package_properties(Qt5WebKitWidgets PROPERTIES
URL "git://gitorious.org/qt/qtwebkit.git"
DESCRIPTION "Qt Webkit module (web browsing engine)"
......
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