CMake: Don't use PUBLIC_LIBRARIES for tests and test helpers

Change-Id: Ia61d65045cfce37185715600878c8bf53668a37a
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Alexandru Croitor 2022-07-27 17:24:55 +02:00
parent 54645a64b7
commit 9f3bce3663
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ qt_internal_add_test(tst_qqmlparser_doc # special case
tst_qqmlparser.cpp
DEFINES
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\"
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
Qt::QmlPrivate
)

View File

@ -12,7 +12,7 @@ qt_internal_add_test(tst_examples
tst_examples.cpp
DEFINES
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\"
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::Gui
Qt::GuiPrivate