summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-07-28 09:49:44 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2022-07-28 10:20:14 +0200
commite398f5e6334c70bdb4932399021c01cf8e2a2e47 (patch)
treef5f51837c3317d5db7846d1efa8cc7c6b3c98439
parentbef597c64eb2eb2c9864c0b9fd2a3f6ff0e7beec (diff)
CMake: Don't use PUBLIC_LIBRARIES for tests and test helpers
Change-Id: I203344f2e0c1c0335e8c98fef811a679f68eda1d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--tests/auto/qtexttospeech/CMakeLists.txt6
-rw-r--r--tests/auto/qvoice/CMakeLists.txt2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qtexttospeech/CMakeLists.txt b/tests/auto/qtexttospeech/CMakeLists.txt
index 7fde6bd..167281b 100644
--- a/tests/auto/qtexttospeech/CMakeLists.txt
+++ b/tests/auto/qtexttospeech/CMakeLists.txt
@@ -9,20 +9,20 @@ endif()
qt_internal_add_test(tst_qtexttospeech
SOURCES
tst_qtexttospeech.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::TextToSpeechPrivate
Qt::Multimedia
)
# on macOS we need to run a Cocoa event dispatcher
qt_internal_extend_target(tst_qtexttospeech CONDITION MACOS
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Gui
)
# for a standalone test build we have to find_package SpeechDispatcher again
find_package(SpeechDispatcher)
qt_internal_extend_target(tst_qtexttospeech CONDITION QT_FEATURE_speechd
- PUBLIC_LIBRARIES
+ LIBRARIES
SpeechDispatcher::SpeechDispatcher
)
diff --git a/tests/auto/qvoice/CMakeLists.txt b/tests/auto/qvoice/CMakeLists.txt
index 62d2eec..275db07 100644
--- a/tests/auto/qvoice/CMakeLists.txt
+++ b/tests/auto/qvoice/CMakeLists.txt
@@ -4,6 +4,6 @@
qt_internal_add_test(tst_qvoice
SOURCES
tst_qvoice.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::TextToSpeechPrivate
)