Commit d7551ceb authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Increase qt, cmake and kf5 requirements a bit

parent 4060384e
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
cmake_minimum_required (VERSION 3.13 FATAL_ERROR)
# KDE Application Version, managed by release script
set(RELEASE_SERVICE_VERSION_MAJOR "20")
......@@ -9,17 +9,18 @@ set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_
project(kgeography VERSION ${RELEASE_SERVICE_VERSION})
# minimal Qt requirement
set (QT_MIN_VERSION "5.2.0")
set(QT_MIN_VERSION "5.12.0") # Remember to update the QT_DEPRECATED_WARNINGS_SINCE below
set(KF5_REQUIRED_VERSION "5.62.0") # Remember to update the KF_DEPRECATED_WARNINGS_SINCE below
# ECM
find_package (ECM 1.7.0 REQUIRED NO_MODULE)
find_package (ECM ${KF5_REQUIRED_VERSION} REQUIRED NO_MODULE)
# where to look first for cmake modules
set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
find_package (Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core Widgets)
find_package (KF5 5.15 REQUIRED COMPONENTS
find_package (KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS
XmlGui WidgetsAddons CoreAddons ConfigWidgets I18n ItemViews IconThemes Crash DocTools
)
......@@ -33,6 +34,8 @@ include(ECMSetupVersion)
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DQT_DEPRECATED_WARNINGS_SINCE=0x050C00)
add_definitions(-DKF_DEPRECATED_WARNINGS_SINCE=0x053E00)
# global include directories
include_directories (${CMAKE_CURRENT_BINARY_DIR})
......
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