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
Plasma
Plasma Integration
Commits
6f02ea26
Commit
6f02ea26
authored
Apr 06, 2022
by
Laurent Montel
Browse files
Fix qt6 cmake support
parent
8c518512
Pipeline
#160208
passed with stage
in 1 minute and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
autotests/CMakeLists.txt
View file @
6f02ea26
...
...
@@ -4,13 +4,13 @@ include(ECMMarkNonGuiExecutable)
find_package
(
Qt
${
QT_MAJOR_VERSION
}
Test
${
QT_MIN_VERSION
}
CONFIG QUIET
)
find_package
(
Qt
${
QT_MAJOR_VERSION
}
Qml
${
QT_MIN_VERSION
}
CONFIG QUIET
)
if
(
NOT Qt
5
Test_FOUND
)
message
(
STATUS
"Qt
5
Test not found, autotests will not be built."
)
if
(
NOT Qt
${
QT_MAJOR_VERSION
}
Test_FOUND
)
message
(
STATUS
"Qt
${
QT_MAJOR_VERSION
}
Test not found, autotests will not be built."
)
return
()
endif
()
if
(
NOT Qt
5
Qml_FOUND
)
message
(
STATUS
"Qt
5
Qml not found, QML autotests will not be built."
)
if
(
NOT Qt
${
QT_MAJOR_VERSION
}
Qml_FOUND
)
message
(
STATUS
"Qt
${
QT_MAJOR_VERSION
}
Qml not found, QML autotests will not be built."
)
endif
()
set
(
CONFIGFILE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/kdeplatformtheme_kdeglobals"
)
...
...
@@ -98,7 +98,7 @@ frameworkintegration_tests(
../src/platformtheme/khintssettings.cpp
)
if
(
Qt
5
Qml_FOUND
)
if
(
Qt
${
QT_MAJOR_VERSION
}
Qml_FOUND
)
add_test
(
NAME qmltests COMMAND qmltestrunner WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
)
frameworkintegration_tests
(
kfiledialogqml_unittest
)
...
...
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