Commit 1b212054 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use KF5_MIN_VERSION

parent bf6ea431
......@@ -7,9 +7,10 @@ set (RELEASE_SERVICE_VERSION_MICRO "70")
set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
project(kgpg VERSION ${RELEASE_SERVICE_VERSION})
set(QT_MIN_VERSION "5.9.0")
set(QT_MIN_VERSION "5.11.0")
set(KF5_MIN_VERSION "5.69.0")
find_package(ECM 5.69 REQUIRED NO_MODULE)
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
include(ECMAddAppIcon)
......@@ -31,7 +32,7 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
)
# Load the frameworks we need
find_package(KF5 5.69 REQUIRED
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
Archive
DocTools
Codecs
......@@ -296,11 +297,7 @@ ecm_install_icons(ICONS
THEME hicolor
)
if (ECM_VERSION VERSION_GREATER "5.58.0")
install(FILES kgpg.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else()
install(FILES kgpg.categories DESTINATION ${KDE_INSTALL_CONFDIR})
endif()
install(FILES kgpg.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
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