From e398f5e6334c70bdb4932399021c01cf8e2a2e47 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 28 Jul 2022 09:49:44 +0200 Subject: CMake: Don't use PUBLIC_LIBRARIES for tests and test helpers Change-Id: I203344f2e0c1c0335e8c98fef811a679f68eda1d Reviewed-by: Volker Hilsheimer --- tests/auto/qtexttospeech/CMakeLists.txt | 6 +++--- tests/auto/qvoice/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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 ) -- cgit v1.2.3