diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-05-11 13:55:08 +0200 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2022-05-13 16:10:22 +0200 |
commit | 53f0816444a1b3ab60130e0d1af0c0e234bbeb1a (patch) | |
tree | 4397994b2d6ca11cee7ced9bd10199a2ad43f630 /tests | |
parent | 0379fb91fcddf996f98ac8ea97094c0cdd071a50 (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.txt | 4 | ||||
-rw-r--r-- | tests/manual/qlowenergycontroller/CMakeLists.txt | 2 |
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 |