summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-07-28 09:53:12 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2022-07-28 14:43:14 +0200
commit98b2daf9e4089b81eb742ffb4086b9fb57f5d3b8 (patch)
tree7b4f1b2bc4bf7ac7868bb4d2c7f2d2aaf72cdce1
parentf252eca59d871d52b18b3de37e91331d8fee27f8 (diff)
downloadqtwebchannel-98b2daf9e4089b81eb742ffb4086b9fb57f5d3b8.tar.gz
CMake: Don't use PUBLIC_LIBRARIES for tests and test helpers
Change-Id: I5e2551c5572bbb6063290d5c6d0b143cf3cff50e Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
-rw-r--r--tests/auto/qml/CMakeLists.txt2
-rw-r--r--tests/auto/webchannel/CMakeLists.txt6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qml/CMakeLists.txt b/tests/auto/qml/CMakeLists.txt
index 093613a..a2075f1 100644
--- a/tests/auto/qml/CMakeLists.txt
+++ b/tests/auto/qml/CMakeLists.txt
@@ -23,7 +23,7 @@ qt_internal_add_test(tst_qmlwebchannel # special case
testobject.cpp testobject.h
testtransport.cpp testtransport.h
testwebchannel.cpp testwebchannel.h
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::CorePrivate
Qt::Gui
Qt::WebChannelPrivate
diff --git a/tests/auto/webchannel/CMakeLists.txt b/tests/auto/webchannel/CMakeLists.txt
index 2568684..8a791d1 100644
--- a/tests/auto/webchannel/CMakeLists.txt
+++ b/tests/auto/webchannel/CMakeLists.txt
@@ -12,7 +12,7 @@ qt_internal_add_test(tst_webchannel
tst_webchannel.cpp tst_webchannel.h
INCLUDE_DIRECTORIES
../../../src/webchannel
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::CorePrivate
Qt::WebChannelPrivate
)
@@ -23,13 +23,13 @@ qt_internal_add_test(tst_webchannel
qt_internal_extend_target(tst_webchannel CONDITION TARGET Qt::Qml
DEFINES
WEBCHANNEL_TESTS_CAN_USE_JS_ENGINE
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Qml
)
qt_internal_extend_target(tst_webchannel CONDITION TARGET Qt::Concurrent
DEFINES
WEBCHANNEL_TESTS_CAN_USE_CONCURRENT
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Concurrent
)