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
Games
Kapman
Commits
66be4aa3
Commit
66be4aa3
authored
Dec 31, 2021
by
Laurent Montel
😁
Browse files
Adapt build system for allowing to build against qt6
parent
ca138195
Pipeline
#116324
passed with stage
in 37 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
66be4aa3
...
...
@@ -9,7 +9,7 @@ set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_
project
(
kapman VERSION
${
RELEASE_SERVICE_VERSION
}
)
set
(
QT_MIN_VERSION
"5.15.0"
)
set
(
KF5_MIN_VERSION
"5.
8
9.0"
)
set
(
KF5_MIN_VERSION
"5.9
0
.0"
)
find_package
(
ECM
${
KF5_MIN_VERSION
}
REQUIRED CONFIG
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
${
ECM_MODULE_PATH
}
)
...
...
@@ -27,7 +27,11 @@ include(KDEClangFormat)
file
(
GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h *.c
)
kde_clang_format
(
${
ALL_CLANG_FORMAT_SOURCE_FILES
}
)
find_package
(
Qt5
${
QT_MIN_VERSION
}
REQUIRED NO_MODULE COMPONENTS Widgets Svg
)
find_package
(
Qt
${
QT_MAJOR_VERSION
}
${
QT_MIN_VERSION
}
REQUIRED NO_MODULE COMPONENTS Widgets Svg
)
if
(
QT_MAJOR_VERSION STREQUAL
"6"
)
find_package
(
Qt6
${
QT_MIN_VERSION
}
REQUIRED NO_MODULE COMPONENTS SvgWidgets
)
endif
()
find_package
(
Qt
${
QT_MAJOR_VERSION
}
QuickWidgets
${
REQUIRED_QT_VERSION
}
CONFIG
)
find_package
(
KF5
${
KF5_MIN_VERSION
}
REQUIRED COMPONENTS
CoreAddons
Config
...
...
src/CMakeLists.txt
View file @
66be4aa3
...
...
@@ -54,16 +54,18 @@ kconfig_add_kcfg_files(kapman settings.kcfgc)
file
(
GLOB ICONS_SRCS
"
${
CMAKE_SOURCE_DIR
}
/icons/*-apps-kapman.png"
)
ecm_add_app_icon
(
kapman ICONS
${
ICONS_SRCS
}
)
target_link_libraries
(
kapman
target_link_libraries
(
kapman
KF5KDEGames
KF5KDEGamesPrivate
KF5::DBusAddons
KF5::XmlGui
KF5::Crash
Qt::Svg
Qt::Xml
Qt
${
QT_MAJOR_VERSION
}
::Svg
Qt
${
QT_MAJOR_VERSION
}
::Xml
)
if
(
QT_MAJOR_VERSION STREQUAL
"6"
)
target_link_libraries
(
kapman Qt6::SvgWidgets
)
endif
()
install
(
TARGETS kapman
${
KDE_INSTALL_TARGETS_DEFAULT_ARGS
}
)
install
(
PROGRAMS org.kde.kapman.desktop DESTINATION
${
KDE_INSTALL_APPDIR
}
)
install
(
FILES org.kde.kapman.appdata.xml DESTINATION
${
KDE_INSTALL_METAINFODIR
}
)
...
...
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