summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2024-02-24 17:43:17 +0100
committerRobert Griebl <robert.griebl@qt.io>2024-02-26 14:28:14 +0100
commita1a47122dd3b0729881ecedb3525f09496e20af5 (patch)
treeb518dbb41392ec4ed1b788cff223ecfa498780f1 /tests
parent08b3937069dde75be7a4897691183b8cef82e66b (diff)
Coverage: make it possible to use any Qt build
With these changes, a coverage build is possible: - against a Qt from the installer - against a non-prefixed developer build Qt - when using Coin's stand-alone tests setup Change-Id: I1d9958e2a8cfd1f241a5b6bf5d276751df7957b2 Pick-to: 6.7 6.6 6.5 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 3d616a97..17248949 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,11 +1,14 @@
-add_subdirectory(data)
-
if(QT_BUILD_STANDALONE_TESTS)
# Add qt_find_package calls for extra dependencies that need to be found when building
# the standalone tests here.
find_package(X11)
find_package(ZLIB)
find_package(Iconv)
+ # Needed to get access to the AM's feature definitions
+ qt_find_package(Qt6 COMPONENTS AppManCommonPrivate)
endif()
+
+add_subdirectory(data)
+
qt_build_tests()