Commit ffe33bcc authored by Luigi Toscano's avatar Luigi Toscano

Clean the Qt and KF5 requirements

- no need to depend on an unreleased Frameworks version, lower
  to 5.35;
- require that Frameworks version also for other Frameworks, not
  just for ECM;
- sync the required version of Qt so that it matches the minimum
  version required for Frameworks 5.35.
parent 1e8660ca
......@@ -2,7 +2,10 @@ cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(juk)
find_package(ECM 5.38 REQUIRED NO_MODULE)
set(QT_MIN_VERSION "5.6.0")
set(KF5_MIN_VERSION "5.35.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(CMakePushCheckState)
......@@ -14,8 +17,8 @@ include(FeatureSummary)
include(ECMInstallIcons)
include(ECMAddAppIcon)
find_package(Qt5 5.2 REQUIRED COMPONENTS Gui Svg Network Test Widgets)
find_package(KF5 REQUIRED COMPONENTS CoreAddons Completion GlobalAccel
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Gui Svg Network Test Widgets)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS CoreAddons Completion GlobalAccel
I18n IconThemes DocTools TextWidgets XmlGui Wallet
WidgetsAddons WindowSystem KDELibs4Support)
find_package(Phonon4Qt5 4.6.60 REQUIRED NO_MODULE)
......
Markdown is supported
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