summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-05-11 13:55:08 +0200
committerKai Köhne <kai.koehne@qt.io>2022-05-13 16:10:22 +0200
commit53f0816444a1b3ab60130e0d1af0c0e234bbeb1a (patch)
tree4397994b2d6ca11cee7ced9bd10199a2ad43f630 /tests
parent0379fb91fcddf996f98ac8ea97094c0cdd071a50 (diff)
Tests: Use REQUIRED COMPONENTS where applicable
Change-Id: I86a47d41ec14182303c93dd665d170d0bff94ac9 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/bluetoothtestdevice/CMakeLists.txt4
-rw-r--r--tests/manual/qlowenergycontroller/CMakeLists.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/bluetoothtestdevice/CMakeLists.txt b/tests/bluetoothtestdevice/CMakeLists.txt
index ed35ac16..c5553599 100644
--- a/tests/bluetoothtestdevice/CMakeLists.txt
+++ b/tests/bluetoothtestdevice/CMakeLists.txt
@@ -10,9 +10,9 @@ if(NOT TARGET Qt::Bluetooth)
set(CMAKE_AUTOMOC ON)
- find_package(Qt6 COMPONENTS Bluetooth Core)
+ find_package(Qt6 REQUIRED COMPONENTS Bluetooth Core)
if(ANDROID OR IOS)
- find_package(Qt6 COMPONENTS Gui)
+ find_package(Qt6 REQUIRED COMPONENTS Gui)
endif()
qt_add_executable(
diff --git a/tests/manual/qlowenergycontroller/CMakeLists.txt b/tests/manual/qlowenergycontroller/CMakeLists.txt
index 022433ee..949aff7d 100644
--- a/tests/manual/qlowenergycontroller/CMakeLists.txt
+++ b/tests/manual/qlowenergycontroller/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT TARGET Qt::Bluetooth)
set(CMAKE_AUTOMOC ON)
- find_package(Qt6 COMPONENTS Bluetooth Core Test Gui)
+ find_package(Qt6 REQUIRED COMPONENTS Bluetooth Core Test Gui)
qt_add_executable(
tst_qlowenergycontroller_device