Add KF_VERSION & KF_DEP_VERSION variables

For consistency with the other KF modules, but also to have some version
info with working copies/checkouts, as well as min required KF deps.
This commit is contained in:
Friedrich W. H. Kossebau 2024-03-18 16:24:41 +01:00
parent 95ee381195
commit 29aec82e67

View File

@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.16) cmake_minimum_required(VERSION 3.16)
project(KImageFormats) set(KF_VERSION "6.1.0") # handled by release scripts
set(KF_DEP_VERSION "6.0.0") # handled by release scripts
project(KImageFormats VERSION ${KF_VERSION})
include(FeatureSummary) include(FeatureSummary)
find_package(ECM 6.0.0 NO_MODULE) find_package(ECM 6.0.0 NO_MODULE)
@ -22,7 +24,7 @@ include(FindPkgConfig)
set(REQUIRED_QT_VERSION 6.5.0) set(REQUIRED_QT_VERSION 6.5.0)
find_package(Qt6Gui ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE) find_package(Qt6Gui ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE)
find_package(KF6Archive) find_package(KF6Archive ${KF_DEP_VERSION})
set_package_properties(KF6Archive PROPERTIES set_package_properties(KF6Archive PROPERTIES
TYPE OPTIONAL TYPE OPTIONAL
PURPOSE "Required for the QImage plugin for Krita and OpenRaster images" PURPOSE "Required for the QImage plugin for Krita and OpenRaster images"