summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2021-05-04 09:30:04 +0200
committerAndreas Buhr <andreas.buhr@qt.io>2021-05-04 14:48:39 +0200
commitef5a2f8d2519c782294843ca2632a316f85245ef (patch)
treebdde8243c1d69e3feb1955a21df18d54475d1822
parentc6f5c869a080b6dda7a2c928820dea856502f05e (diff)
Tidy up the autotest setup
We don't need to find_package Qt modules here. Change-Id: Ib484b4da2cf00145f63f7e6fa6e2614225419d35 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
-rw-r--r--tests/CMakeLists.txt10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 5140fe6b..33962f6d 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,10 +1,6 @@
-if(NOT TARGET Qt::Test)
- cmake_minimum_required(VERSION 3.15.0)
- project(QtConnectivityTests VERSION 6.0.0 LANGUAGES C CXX)
- find_package(Qt6 REQUIRED COMPONENTS BuildInternals Core Bluetooth Nfc Test
- Network)
- find_package(Qt6 OPTIONAL_COMPONENTS Gui Widgets)
- qt_set_up_standalone_tests_build()
+if(QT_BUILD_STANDALONE_TESTS)
+ # Add qt_find_package calls for extra dependencies that need to be found when building
+ # the standalone tests here.
endif()
if(TARGET Qt::Bluetooth)