summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-07-26 18:07:11 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2022-07-27 13:09:00 +0200
commit9903bfef7571606f5b8d4e1f97920796df063474 (patch)
treecb4f12d881b2f276182d2b9a558aacfcbf5cd142 /tests
parent9a3f8b68123a08f6dfe6a7f0a4b82e9d16311b5d (diff)
downloadqtconnectivity-9903bfef7571606f5b8d4e1f97920796df063474.tar.gz
CMake: Don't use PUBLIC_LIBRARIES for tests and test helpers
Change-Id: I178b945cfc563bc3e0c9c01c63f54f0cba4552d9 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qbluetoothaddress/CMakeLists.txt2
-rw-r--r--tests/auto/qbluetoothdevicediscoveryagent/CMakeLists.txt4
-rw-r--r--tests/auto/qbluetoothdeviceinfo/CMakeLists.txt2
-rw-r--r--tests/auto/qbluetoothhostinfo/CMakeLists.txt2
-rw-r--r--tests/auto/qbluetoothlocaldevice/CMakeLists.txt4
-rw-r--r--tests/auto/qbluetoothserver/CMakeLists.txt4
-rw-r--r--tests/auto/qbluetoothservicediscoveryagent/CMakeLists.txt4
-rw-r--r--tests/auto/qbluetoothserviceinfo/CMakeLists.txt4
-rw-r--r--tests/auto/qbluetoothsocket/CMakeLists.txt4
-rw-r--r--tests/auto/qbluetoothuuid/CMakeLists.txt2
-rw-r--r--tests/auto/qlowenergycharacteristic/CMakeLists.txt2
-rw-r--r--tests/auto/qlowenergycontroller-gattserver/server/CMakeLists.txt2
-rw-r--r--tests/auto/qlowenergycontroller-gattserver/test/CMakeLists.txt2
-rw-r--r--tests/auto/qlowenergycontroller/CMakeLists.txt6
-rw-r--r--tests/auto/qlowenergydescriptor/CMakeLists.txt2
-rw-r--r--tests/auto/qlowenergyservice/CMakeLists.txt2
-rw-r--r--tests/auto/qndeffilter/CMakeLists.txt2
-rw-r--r--tests/auto/qndefmessage/CMakeLists.txt2
-rw-r--r--tests/auto/qndefnfcsmartposterrecord/CMakeLists.txt2
-rw-r--r--tests/auto/qndefrecord/CMakeLists.txt2
-rw-r--r--tests/auto/qnearfieldmanager/CMakeLists.txt2
-rw-r--r--tests/auto/qnearfieldtagtype1/CMakeLists.txt2
-rw-r--r--tests/auto/qnearfieldtagtype2/CMakeLists.txt2
-rw-r--r--tests/bttestui/CMakeLists.txt2
-rw-r--r--tests/manual/qlowenergycontroller/CMakeLists.txt2
25 files changed, 33 insertions, 33 deletions
diff --git a/tests/auto/qbluetoothaddress/CMakeLists.txt b/tests/auto/qbluetoothaddress/CMakeLists.txt
index 11745e78..713cd703 100644
--- a/tests/auto/qbluetoothaddress/CMakeLists.txt
+++ b/tests/auto/qbluetoothaddress/CMakeLists.txt
@@ -8,6 +8,6 @@
qt_internal_add_test(tst_qbluetoothaddress
SOURCES
tst_qbluetoothaddress.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
)
diff --git a/tests/auto/qbluetoothdevicediscoveryagent/CMakeLists.txt b/tests/auto/qbluetoothdevicediscoveryagent/CMakeLists.txt
index 5feef071..e8c85c38 100644
--- a/tests/auto/qbluetoothdevicediscoveryagent/CMakeLists.txt
+++ b/tests/auto/qbluetoothdevicediscoveryagent/CMakeLists.txt
@@ -8,7 +8,7 @@
qt_internal_add_test(tst_qbluetoothdevicediscoveryagent
SOURCES
tst_qbluetoothdevicediscoveryagent.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::BluetoothPrivate
)
@@ -16,7 +16,7 @@ qt_internal_add_test(tst_qbluetoothdevicediscoveryagent
#####################################################################
qt_internal_extend_target(tst_qbluetoothdevicediscoveryagent CONDITION MACOS
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Widgets
)
diff --git a/tests/auto/qbluetoothdeviceinfo/CMakeLists.txt b/tests/auto/qbluetoothdeviceinfo/CMakeLists.txt
index 5d5301b6..58294f52 100644
--- a/tests/auto/qbluetoothdeviceinfo/CMakeLists.txt
+++ b/tests/auto/qbluetoothdeviceinfo/CMakeLists.txt
@@ -8,6 +8,6 @@
qt_internal_add_test(tst_qbluetoothdeviceinfo
SOURCES
tst_qbluetoothdeviceinfo.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
)
diff --git a/tests/auto/qbluetoothhostinfo/CMakeLists.txt b/tests/auto/qbluetoothhostinfo/CMakeLists.txt
index 67741636..f4ab8b95 100644
--- a/tests/auto/qbluetoothhostinfo/CMakeLists.txt
+++ b/tests/auto/qbluetoothhostinfo/CMakeLists.txt
@@ -8,6 +8,6 @@
qt_internal_add_test(tst_qbluetoothhostinfo
SOURCES
tst_qbluetoothhostinfo.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
)
diff --git a/tests/auto/qbluetoothlocaldevice/CMakeLists.txt b/tests/auto/qbluetoothlocaldevice/CMakeLists.txt
index c7285277..1a9eb751 100644
--- a/tests/auto/qbluetoothlocaldevice/CMakeLists.txt
+++ b/tests/auto/qbluetoothlocaldevice/CMakeLists.txt
@@ -8,7 +8,7 @@
qt_internal_add_test(tst_qbluetoothlocaldevice
SOURCES
tst_qbluetoothlocaldevice.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::BluetoothPrivate
)
@@ -16,6 +16,6 @@ qt_internal_add_test(tst_qbluetoothlocaldevice
#####################################################################
qt_internal_extend_target(tst_qbluetoothlocaldevice CONDITION MACOS
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Widgets
)
diff --git a/tests/auto/qbluetoothserver/CMakeLists.txt b/tests/auto/qbluetoothserver/CMakeLists.txt
index b966586d..6e9aef3c 100644
--- a/tests/auto/qbluetoothserver/CMakeLists.txt
+++ b/tests/auto/qbluetoothserver/CMakeLists.txt
@@ -8,7 +8,7 @@
qt_internal_add_test(tst_qbluetoothserver
SOURCES
tst_qbluetoothserver.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::BluetoothPrivate
)
@@ -19,6 +19,6 @@ qt_internal_add_test(tst_qbluetoothserver
#####################################################################
qt_internal_extend_target(tst_qbluetoothserver CONDITION MACOS
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Widgets
)
diff --git a/tests/auto/qbluetoothservicediscoveryagent/CMakeLists.txt b/tests/auto/qbluetoothservicediscoveryagent/CMakeLists.txt
index 407db998..b1900989 100644
--- a/tests/auto/qbluetoothservicediscoveryagent/CMakeLists.txt
+++ b/tests/auto/qbluetoothservicediscoveryagent/CMakeLists.txt
@@ -8,7 +8,7 @@
qt_internal_add_test(tst_qbluetoothservicediscoveryagent
SOURCES
tst_qbluetoothservicediscoveryagent.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
)
@@ -16,7 +16,7 @@ qt_internal_add_test(tst_qbluetoothservicediscoveryagent
#####################################################################
qt_internal_extend_target(tst_qbluetoothservicediscoveryagent CONDITION MACOS
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Widgets
)
diff --git a/tests/auto/qbluetoothserviceinfo/CMakeLists.txt b/tests/auto/qbluetoothserviceinfo/CMakeLists.txt
index dd91c7ad..2af6e848 100644
--- a/tests/auto/qbluetoothserviceinfo/CMakeLists.txt
+++ b/tests/auto/qbluetoothserviceinfo/CMakeLists.txt
@@ -8,7 +8,7 @@
qt_internal_add_test(tst_qbluetoothserviceinfo
SOURCES
tst_qbluetoothserviceinfo.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
)
@@ -16,7 +16,7 @@ qt_internal_add_test(tst_qbluetoothserviceinfo
#####################################################################
qt_internal_extend_target(tst_qbluetoothserviceinfo CONDITION MACOS
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Widgets
)
diff --git a/tests/auto/qbluetoothsocket/CMakeLists.txt b/tests/auto/qbluetoothsocket/CMakeLists.txt
index 95865636..c8912da4 100644
--- a/tests/auto/qbluetoothsocket/CMakeLists.txt
+++ b/tests/auto/qbluetoothsocket/CMakeLists.txt
@@ -8,7 +8,7 @@
qt_internal_add_test(tst_qbluetoothsocket
SOURCES
tst_qbluetoothsocket.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::BluetoothPrivate
Qt::Network
)
@@ -23,7 +23,7 @@ qt_internal_add_test(tst_qbluetoothsocket
qt_internal_extend_target(tst_qbluetoothsocket CONDITION MACOS
DEFINES
QT_OSX_BLUETOOTH
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Widgets
)
diff --git a/tests/auto/qbluetoothuuid/CMakeLists.txt b/tests/auto/qbluetoothuuid/CMakeLists.txt
index f985de68..c499ee78 100644
--- a/tests/auto/qbluetoothuuid/CMakeLists.txt
+++ b/tests/auto/qbluetoothuuid/CMakeLists.txt
@@ -8,6 +8,6 @@
qt_internal_add_test(tst_qbluetoothuuid
SOURCES
tst_qbluetoothuuid.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
)
diff --git a/tests/auto/qlowenergycharacteristic/CMakeLists.txt b/tests/auto/qlowenergycharacteristic/CMakeLists.txt
index 3156cf8d..a6e879f6 100644
--- a/tests/auto/qlowenergycharacteristic/CMakeLists.txt
+++ b/tests/auto/qlowenergycharacteristic/CMakeLists.txt
@@ -8,7 +8,7 @@
qt_internal_add_test(tst_qlowenergycharacteristic
SOURCES
tst_qlowenergycharacteristic.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
)
diff --git a/tests/auto/qlowenergycontroller-gattserver/server/CMakeLists.txt b/tests/auto/qlowenergycontroller-gattserver/server/CMakeLists.txt
index b0220d6c..8e00bb33 100644
--- a/tests/auto/qlowenergycontroller-gattserver/server/CMakeLists.txt
+++ b/tests/auto/qlowenergycontroller-gattserver/server/CMakeLists.txt
@@ -10,6 +10,6 @@ qt_internal_add_executable(qlecontroller-server
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
SOURCES
qlowenergycontroller-gattserver.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
)
diff --git a/tests/auto/qlowenergycontroller-gattserver/test/CMakeLists.txt b/tests/auto/qlowenergycontroller-gattserver/test/CMakeLists.txt
index 69b5b510..efac223a 100644
--- a/tests/auto/qlowenergycontroller-gattserver/test/CMakeLists.txt
+++ b/tests/auto/qlowenergycontroller-gattserver/test/CMakeLists.txt
@@ -8,7 +8,7 @@
qt_internal_add_test(tst_qlowenergycontroller-gattserver
SOURCES
tst_qlowenergycontroller-gattserver.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
Qt::BluetoothPrivate
)
diff --git a/tests/auto/qlowenergycontroller/CMakeLists.txt b/tests/auto/qlowenergycontroller/CMakeLists.txt
index 2561d072..b75a5b3e 100644
--- a/tests/auto/qlowenergycontroller/CMakeLists.txt
+++ b/tests/auto/qlowenergycontroller/CMakeLists.txt
@@ -8,7 +8,7 @@
qt_internal_add_test(tst_qlowenergycontroller
SOURCES
tst_qlowenergycontroller.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::BluetoothPrivate
)
@@ -16,12 +16,12 @@ qt_internal_add_test(tst_qlowenergycontroller
#####################################################################
qt_internal_extend_target(tst_qlowenergycontroller CONDITION ANDROID
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Widgets
)
qt_internal_extend_target(tst_qlowenergycontroller CONDITION IOS OR MACOS
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Widgets
)
diff --git a/tests/auto/qlowenergydescriptor/CMakeLists.txt b/tests/auto/qlowenergydescriptor/CMakeLists.txt
index 17245661..6292f358 100644
--- a/tests/auto/qlowenergydescriptor/CMakeLists.txt
+++ b/tests/auto/qlowenergydescriptor/CMakeLists.txt
@@ -8,7 +8,7 @@
qt_internal_add_test(tst_qlowenergydescriptor
SOURCES
tst_qlowenergydescriptor.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
)
diff --git a/tests/auto/qlowenergyservice/CMakeLists.txt b/tests/auto/qlowenergyservice/CMakeLists.txt
index c293faf9..4b38cd6e 100644
--- a/tests/auto/qlowenergyservice/CMakeLists.txt
+++ b/tests/auto/qlowenergyservice/CMakeLists.txt
@@ -8,6 +8,6 @@
qt_internal_add_test(tst_qlowenergyservice
SOURCES
tst_qlowenergyservice.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
)
diff --git a/tests/auto/qndeffilter/CMakeLists.txt b/tests/auto/qndeffilter/CMakeLists.txt
index 686d032a..f4edc90a 100644
--- a/tests/auto/qndeffilter/CMakeLists.txt
+++ b/tests/auto/qndeffilter/CMakeLists.txt
@@ -4,6 +4,6 @@
qt_internal_add_test(tst_qndeffilter
SOURCES
tst_qndeffilter.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Nfc
)
diff --git a/tests/auto/qndefmessage/CMakeLists.txt b/tests/auto/qndefmessage/CMakeLists.txt
index f7c6b908..90357f02 100644
--- a/tests/auto/qndefmessage/CMakeLists.txt
+++ b/tests/auto/qndefmessage/CMakeLists.txt
@@ -8,6 +8,6 @@
qt_internal_add_test(tst_qndefmessage
SOURCES
tst_qndefmessage.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Nfc
)
diff --git a/tests/auto/qndefnfcsmartposterrecord/CMakeLists.txt b/tests/auto/qndefnfcsmartposterrecord/CMakeLists.txt
index 0f975ec1..193241e4 100644
--- a/tests/auto/qndefnfcsmartposterrecord/CMakeLists.txt
+++ b/tests/auto/qndefnfcsmartposterrecord/CMakeLists.txt
@@ -8,6 +8,6 @@
qt_internal_add_test(tst_qndefnfcsmartposterrecord
SOURCES
tst_qndefnfcsmartposterrecord.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Nfc
)
diff --git a/tests/auto/qndefrecord/CMakeLists.txt b/tests/auto/qndefrecord/CMakeLists.txt
index e237f01d..a87f2207 100644
--- a/tests/auto/qndefrecord/CMakeLists.txt
+++ b/tests/auto/qndefrecord/CMakeLists.txt
@@ -8,6 +8,6 @@
qt_internal_add_test(tst_qndefrecord
SOURCES
tst_qndefrecord.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Nfc
)
diff --git a/tests/auto/qnearfieldmanager/CMakeLists.txt b/tests/auto/qnearfieldmanager/CMakeLists.txt
index 5db1422a..a85554f7 100644
--- a/tests/auto/qnearfieldmanager/CMakeLists.txt
+++ b/tests/auto/qnearfieldmanager/CMakeLists.txt
@@ -26,7 +26,7 @@ qt_internal_add_test(tst_qnearfieldmanager
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../nfcdata\\\"
INCLUDE_DIRECTORIES
../nfccommons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::NfcPrivate
TESTDATA ${test_data}
)
diff --git a/tests/auto/qnearfieldtagtype1/CMakeLists.txt b/tests/auto/qnearfieldtagtype1/CMakeLists.txt
index c42b9216..f382d671 100644
--- a/tests/auto/qnearfieldtagtype1/CMakeLists.txt
+++ b/tests/auto/qnearfieldtagtype1/CMakeLists.txt
@@ -25,7 +25,7 @@ qt_internal_add_test(tst_qnearfieldtagtype1
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../nfcdata\\\"
INCLUDE_DIRECTORIES
../nfccommons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::NfcPrivate
TESTDATA ${test_data}
)
diff --git a/tests/auto/qnearfieldtagtype2/CMakeLists.txt b/tests/auto/qnearfieldtagtype2/CMakeLists.txt
index b2ad4dd6..53d674c4 100644
--- a/tests/auto/qnearfieldtagtype2/CMakeLists.txt
+++ b/tests/auto/qnearfieldtagtype2/CMakeLists.txt
@@ -25,7 +25,7 @@ qt_internal_add_test(tst_qnearfieldtagtype2
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/nfcdata\\\"
INCLUDE_DIRECTORIES
../nfccommons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::NfcPrivate
TESTDATA ${test_data}
)
diff --git a/tests/bttestui/CMakeLists.txt b/tests/bttestui/CMakeLists.txt
index 440c57b6..0fef4ae0 100644
--- a/tests/bttestui/CMakeLists.txt
+++ b/tests/bttestui/CMakeLists.txt
@@ -45,7 +45,7 @@ else()
SOURCES
btlocaldevice.cpp btlocaldevice.h
main.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
Qt::Gui
Qt::Quick
diff --git a/tests/manual/qlowenergycontroller/CMakeLists.txt b/tests/manual/qlowenergycontroller/CMakeLists.txt
index 8b009c34..1c3325f0 100644
--- a/tests/manual/qlowenergycontroller/CMakeLists.txt
+++ b/tests/manual/qlowenergycontroller/CMakeLists.txt
@@ -29,7 +29,7 @@ else()
qt_internal_add_test(tst_qlowenergycontroller_device
SOURCES
tst_qlowenergycontroller_device.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Bluetooth
)