Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
KColorChooser
Commits
bb38b011
Commit
bb38b011
authored
Jun 01, 2021
by
Laurent Montel
😁
Browse files
Time to increase version + use target support
parent
5761bda5
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
bb38b011
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.1
0
.0"
)
set
(
KF5_MIN_VERSION
"5.3
0
.0"
)
set
(
QT_MIN_VERSION
"5.1
5
.0"
)
set
(
KF5_MIN_VERSION
"5.
8
3.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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment