Commit bb38b011 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Time to increase version + use target support

parent 5761bda5
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
cmake_minimum_required (VERSION 3.16 FATAL_ERROR)
# KDE Application Version, managed by release script
set(RELEASE_SERVICE_VERSION_MAJOR "21")
......@@ -8,8 +8,8 @@ set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_
project(kcolorchooser VERSION ${RELEASE_SERVICE_VERSION})
set(QT_MIN_VERSION "5.10.0")
set(KF5_MIN_VERSION "5.30.0")
set(QT_MIN_VERSION "5.15.0")
set(KF5_MIN_VERSION "5.83.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
......@@ -32,16 +32,11 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
if (KF5ConfigWidgets_VERSION VERSION_GREATER "5.56.0")
add_definitions(-DQT_NO_FOREACH)
MESSAGE(STATUS "compile without foreach")
endif()
ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KCOLORCHOOSER VERSION_HEADER kcolorchooser_version.h)
set(kcolorchooser_SRCS kcolorchooser.cpp )
add_executable(kcolorchooser)
target_sources(kcolorchooser PRIVATE kcolorchooser.cpp )
add_executable(kcolorchooser ${kcolorchooser_SRCS})
target_link_libraries(kcolorchooser Qt5::Gui KF5::I18n KF5::XmlGui)
......
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