Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
KNetWalk
Commits
5b0db1d6
Commit
5b0db1d6
authored
Dec 29, 2021
by
Laurent Montel
Browse files
Adapt build system for building against qt6
parent
cd8ce93e
Pipeline
#115747
passed with stage
in 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
5b0db1d6
...
...
@@ -9,12 +9,15 @@ set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_
project
(
knetwalk VERSION
"3.3.
${
RELEASE_SERVICE_COMPACT_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 NO_MODULE
)
set
(
CMAKE_MODULE_PATH
${
ECM_MODULE_PATH
}
)
include
(
KDEInstallDirs
)
find_package
(
Qt
${
QT_MAJOR_VERSION
}
${
QT_MIN_VERSION
}
REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick
)
find_package
(
Qt
${
QT_MAJOR_VERSION
}
QuickWidgets
${
REQUIRED_QT_VERSION
}
CONFIG
)
find_package
(
Qt5
${
QT_MIN_VERSION
}
REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick
)
find_package
(
KF5
${
KF5_MIN_VERSION
}
REQUIRED COMPONENTS
Config
ConfigWidgets
...
...
@@ -30,19 +33,18 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
find_package
(
KF5KDEGames 4.9.0 REQUIRED
)
find_package
(
Qt
5
Test
${
QT_MIN_VERSION
}
QUIET
)
set_package_properties
(
Qt
5
Test PROPERTIES
find_package
(
Qt
${
QT_MAJOR_VERSION
}
Test
${
QT_MIN_VERSION
}
QUIET
)
set_package_properties
(
Qt
${
QT_MAJOR_VERSION
}
Test PROPERTIES
PURPOSE
"Required for tests"
TYPE OPTIONAL
)
add_feature_info
(
"Qt
5Test"
Qt5
Test_FOUND
"Required for building tests"
)
if
(
NOT Qt
5
Test_FOUND
)
add_feature_info
(
"Qt
${
QT_MAJOR_VERSION
}
Test"
Qt
${
QT_MAJOR_VERSION
}
Test_FOUND
"Required for building tests"
)
if
(
NOT Qt
${
QT_MAJOR_VERSION
}
Test_FOUND
)
set
(
BUILD_TESTING OFF CACHE BOOL
"Build the testing tree."
)
endif
()
include
(
FeatureSummary
)
include
(
ECMAddAppIcon
)
include
(
ECMInstallIcons
)
include
(
KDEInstallDirs
)
include
(
ECMSetupVersion
)
include
(
KDECompilerSettings NO_POLICY_SCOPE
)
include
(
KDECMakeSettings
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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