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

Change-Id: I9b7404e1d3a78fe0726ec0f5ce1461f6c209e90d
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Alexandru Croitor 2022-07-25 17:50:38 +02:00
parent 7da51c14d9
commit 4d22405e48
795 changed files with 887 additions and 888 deletions

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qtconcurrentfilter
SOURCES
tst_qtconcurrentfilter.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
)

View File

@ -8,6 +8,6 @@ qt_internal_add_test(tst_qtconcurrentfiltermapgenerated
SOURCES
tst_qtconcurrent_selected_tests.cpp
tst_qtconcurrentfiltermapgenerated.cpp tst_qtconcurrentfiltermapgenerated.h
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qtconcurrentiteratekernel
SOURCES
tst_qtconcurrentiteratekernel.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qtconcurrentmap
SOURCES
tst_qtconcurrentmap.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qtconcurrentmedian
SOURCES
tst_qtconcurrentmedian.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qtconcurrentrun
SOURCES
tst_qtconcurrentrun.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qtconcurrenttask
SOURCES
tst_qtconcurrenttask.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qtconcurrentthreadengine
SOURCES
tst_qtconcurrentthreadengine.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qpauseanimation
SOURCES
tst_qpauseanimation.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qpropertyanimation
SOURCES
tst_qpropertyanimation.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::Gui
Qt::Widgets

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qfloat16
SOURCES
tst_qfloat16.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::TestPrivate
)

View File

@ -8,7 +8,7 @@ qt_internal_add_test(tst_qglobalstatic
EXCEPTIONS
SOURCES
tst_qglobalstatic.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::TestPrivate
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qhooks
SOURCES
tst_qhooks.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qnumeric
SOURCES
tst_qnumeric.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qrandomgenerator
SOURCES
tst_qrandomgenerator.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qtendian
SOURCES
tst_qtendian.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qwinregistry
SOURCES
tst_qwinregistry.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -2,6 +2,6 @@ qt_internal_add_test(tst_qxp_function_ref
EXCEPTIONS
SOURCES
tst_qxp_function_ref.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_largefile
SOURCES
tst_largefile.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::TestPrivate
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qabstractfileengine
SOURCES
tst_qabstractfileengine.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qdataurl
SOURCES
tst_qdataurl.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qdebug
SOURCES
tst_qdebug.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
)

View File

@ -16,7 +16,7 @@ list(APPEND test_data "tst_qdir.cpp")
qt_internal_add_test(tst_qdir
SOURCES
tst_qdir.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
TESTDATA ${test_data}
)

View File

@ -8,6 +8,6 @@ qt_internal_add_executable(qdir
GUI
DEFINES
QT_DISABLE_DEPRECATED_BEFORE=0
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
)

View File

@ -10,7 +10,7 @@ list(APPEND test_data "entrylist")
qt_internal_add_test(tst_qdiriterator
SOURCES
tst_qdiriterator.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
TESTDATA ${test_data}
)

View File

@ -16,7 +16,7 @@ list(APPEND test_data "resources/file1.ext1")
qt_internal_add_test(tst_qfile
SOURCES
tst_qfile.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::TestPrivate
TESTDATA ${test_data}
@ -59,7 +59,7 @@ qt_internal_add_resource(tst_qfile "copy-fallback"
#####################################################################
qt_internal_extend_target(tst_qfile CONDITION TARGET Qt::Network
PUBLIC_LIBRARIES
LIBRARIES
Qt::Network
)
@ -74,7 +74,7 @@ qt_internal_extend_target(tst_qfile CONDITION CONFIG___contains___builtin_testda
)
qt_internal_extend_target(tst_qfile CONDITION WIN32
PUBLIC_LIBRARIES
LIBRARIES
ole32
uuid
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qfileinfo
SOURCES
tst_qfileinfo.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)
@ -41,7 +41,7 @@ qt_internal_add_resource(tst_qfileinfo "testdata"
#####################################################################
qt_internal_extend_target(tst_qfileinfo CONDITION WIN32
PUBLIC_LIBRARIES
LIBRARIES
advapi32
netapi32
)

View File

@ -58,7 +58,7 @@ set(qfileselector_resource_files
qt_internal_add_test(tst_qfileselectors
SOURCES
tst_qfileselector.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
TESTDATA ${qfileselector_resource_files}
BUILTIN_TESTDATA

View File

@ -9,6 +9,6 @@ qt_internal_add_test(tst_qfilesystementry
../../../../../src/corelib/io/qfilesystementry.cpp
../../../../../src/corelib/io/qfilesystementry_p.h
tst_qfilesystementry.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qfilesystemmetadata
SOURCES
tst_qfilesystemmetadata.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -10,7 +10,7 @@ list(APPEND test_data "tst_qiodevice.cpp")
qt_internal_add_test(tst_qiodevice
SOURCES
tst_qiodevice.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Network
TESTDATA ${test_data}
QT_TEST_SERVER_LIST "apache2" "cyrus"

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qipaddress
SOURCES
tst_qipaddress.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -5,7 +5,7 @@
qt_internal_add_test(tst_qlockfile
SOURCES
tst_qlockfile.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
Qt::CorePrivate
)
@ -14,7 +14,7 @@ qt_internal_add_test(tst_qlockfile
#####################################################################
qt_internal_extend_target(tst_qlockfile CONDITION WIN32
PUBLIC_LIBRARIES
LIBRARIES
advapi32
)
add_subdirectory(qlockfiletesthelper)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qloggingcategory
SOURCES
tst_qloggingcategory.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -10,7 +10,7 @@ list(APPEND test_data "qtlogging.ini")
qt_internal_add_test(tst_qloggingregistry
SOURCES
tst_qloggingregistry.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
TESTDATA ${test_data}
)

View File

@ -6,7 +6,7 @@ qt_internal_add_test(tst_qprocess
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../"
SOURCES
../tst_qprocess.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::Network
Qt::TestPrivate

View File

@ -8,7 +8,7 @@ qt_internal_add_executable(testGuiProcess
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
SOURCES
main.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
Qt::Widgets
)

View File

@ -7,7 +7,7 @@ add_executable(testSoftExit)
qt_internal_extend_target(testSoftExit CONDITION WIN32
SOURCES
main_win.cpp
PUBLIC_LIBRARIES
LIBRARIES
user32
)

View File

@ -22,7 +22,7 @@ qt_internal_add_test(tst_qsettings
tst_qsettings.cpp
INCLUDE_DIRECTORIES
../../kernel/qmetatype
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::Gui
TESTDATA ${qsettings_resource_files}
@ -34,11 +34,11 @@ qt_internal_add_test(tst_qsettings
#####################################################################
qt_internal_extend_target(tst_qsettings CONDITION MSVC
PUBLIC_LIBRARIES
LIBRARIES
advapi32
)
qt_internal_extend_target(tst_qsettings CONDITION APPLE
PUBLIC_LIBRARIES
LIBRARIES
${FWCoreFoundation}
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qstorageinfo
SOURCES
tst_qstorageinfo.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qtemporarydir
SOURCES
tst_qtemporarydir.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::TestPrivate
)

View File

@ -10,7 +10,7 @@ list(APPEND test_data "tst_qtemporaryfile.cpp")
qt_internal_add_test(tst_qtemporaryfile
SOURCES
tst_qtemporaryfile.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::TestPrivate
TESTDATA ${test_data}
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qurl
SOURCES
tst_qurl.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
Qt::TestPrivate
)

View File

@ -12,7 +12,7 @@ qt_internal_add_test(tst_qurlinternal
SOURCES
tst_qurlinternal.cpp
utf8data.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qurlquery
SOURCES
tst_qurlquery.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -12,6 +12,6 @@ qt_internal_add_test(tst_qabstractitemmodel
QT_DISABLE_DEPRECATED_BEFORE=0
INCLUDE_DIRECTORIES
../../../other/qabstractitemmodelutils
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qconcatenatetablesproxymodel
SOURCES
tst_qconcatenatetablesproxymodel.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
)

View File

@ -10,6 +10,6 @@ qt_internal_add_test(tst_qidentityproxymodel
tst_qidentityproxymodel.cpp
INCLUDE_DIRECTORIES
../../../other/qabstractitemmodelutils
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qitemmodel
SOURCES
tst_qitemmodel.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
Qt::Sql
Qt::Widgets

View File

@ -9,6 +9,6 @@ qt_internal_add_test(tst_qsfpm_recursive
tst_qsortfilterproxymodel_recursive.cpp
DEFINES
QT_DISABLE_DEPRECATED_BEFORE=0
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qtransposeproxymodel
SOURCES
tst_qtransposeproxymodel.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
)

View File

@ -20,7 +20,7 @@ qt_internal_add_test(tst_qcoreapplication
VERSION ${target_version} # special case
SOURCES
tst_qcoreapplication.cpp tst_qcoreapplication.h
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qeventloop
SOURCES
tst_qeventloop.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::Network
)
@ -16,7 +16,7 @@ qt_internal_add_test(tst_qeventloop
#####################################################################
qt_internal_extend_target(tst_qeventloop CONDITION WIN32
PUBLIC_LIBRARIES
LIBRARIES
user32
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qmetacontainer
SOURCES
tst_qmetacontainer.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,7 +7,7 @@ set(tst_qmetaobject_SOURCES
qt_internal_add_test(tst_qmetaobject
SOURCES
${tst_qmetaobject_SOURCES}
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qmetaobjectbuilder
SOURCES
tst_qmetaobjectbuilder.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -15,7 +15,7 @@ qt_internal_add_test(tst_qmetatype
QT_DISABLE_DEPRECATED_BEFORE=0
INCLUDE_DIRECTORIES
../../../other/qvariant_common
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::Gui
TESTDATA ${test_data}

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qmimedata
SOURCES
tst_qmimedata.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qpointer
SOURCES
tst_qpointer.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
)
@ -15,6 +15,6 @@ qt_internal_add_test(tst_qpointer
#####################################################################
qt_internal_extend_target(tst_qpointer CONDITION TARGET Qt::Widgets
PUBLIC_LIBRARIES
LIBRARIES
Qt::Widgets
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qproperty
SOURCES
tst_qproperty.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -6,7 +6,7 @@ if(QT_FEATURE_sharedmemory)
qt_internal_add_test(tst_qsharedmemory
SOURCES
tst_qsharedmemory.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)
@ -14,7 +14,7 @@ if(QT_FEATURE_sharedmemory)
#####################################################################
qt_internal_extend_target(tst_qsharedmemory CONDITION LINUX
PUBLIC_LIBRARIES
LIBRARIES
rt
)
add_subdirectory(producerconsumer)

View File

@ -7,6 +7,6 @@
qt_internal_add_test_helper(producerconsumer_helper
SOURCES
main.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Test
)

View File

@ -11,7 +11,7 @@ endif()
qt_internal_add_test(tst_qsocketnotifier
SOURCES
tst_qsocketnotifier.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::Network
Qt::NetworkPrivate
@ -24,6 +24,6 @@ qt_internal_add_test(tst_qsocketnotifier
#####################################################################
qt_internal_extend_target(tst_qsocketnotifier CONDITION WIN32
PUBLIC_LIBRARIES
LIBRARIES
ws2_32
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test_helper(acquirerelease_helper
SOURCES
main.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Test
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qtimer
SOURCES
tst_qtimer.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -17,7 +17,7 @@ qt_internal_add_test(tst_qvariant
QT_DISABLE_DEPRECATED_BEFORE=0
INCLUDE_DIRECTORIES
../../../other/qvariant_common
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::Gui
TESTDATA ${qvariant_resource_files}

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qwineventnotifier
SOURCES
tst_qwineventnotifier.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -12,7 +12,7 @@ qt_internal_add_test(tst_qmimedatabase-cache
SOURCES
../tst_qmimedatabase.h
tst_qmimedatabase-cache.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
)

View File

@ -12,7 +12,7 @@ qt_internal_add_test(tst_qmimedatabase-xml
SOURCES
../tst_qmimedatabase.h
tst_qmimedatabase-xml.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qmimetype
SOURCES
tst_qmimetype.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -10,7 +10,7 @@ qt_internal_add_cmake_library(tst_qfactoryloader_plugin1
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../bin"
SOURCES
plugin1.cpp plugin1.h
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
)

View File

@ -10,7 +10,7 @@ qt_internal_add_cmake_library(tst_qfactoryloader_plugin2
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../bin"
SOURCES
plugin2.cpp plugin2.h
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
)

View File

@ -10,7 +10,7 @@ qt_internal_add_cmake_library(mylib
#OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../" # special case
SOURCES
mylib.c
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
)

View File

@ -10,7 +10,7 @@ qt_internal_add_cmake_library(mylib2 # special case
#OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../" # special case
SOURCES
mylib.c
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
)

View File

@ -9,7 +9,7 @@ qt_internal_add_cmake_library(debugplugin
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../plugins"
SOURCES
main.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
)

View File

@ -9,7 +9,7 @@ qt_internal_add_cmake_library(invalidplugin
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../plugins"
SOURCES
main.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
)

View File

@ -9,7 +9,7 @@ qt_internal_add_cmake_library(releaseplugin
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../plugins"
SOURCES
main.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
)

View File

@ -10,7 +10,7 @@ qt_internal_add_cmake_library(almostplugin
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../bin"
SOURCES
almostplugin.cpp almostplugin.h
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
)

View File

@ -10,7 +10,7 @@ qt_internal_add_cmake_library(tst_qpluginloaderlib
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../bin"
SOURCES
mylib.c
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
)

View File

@ -4,7 +4,7 @@ qt_internal_add_cmake_library(theplugin
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../bin"
SOURCES
theplugin.cpp theplugin.h
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
)
qt_autogen_tools_initial_setup(theplugin)
@ -16,7 +16,7 @@ if (UNIX AND NOT APPLE)
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../bin"
SOURCES
theoldplugin.cpp theoldplugin.h
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
)
qt_autogen_tools_initial_setup(theoldplugin)

View File

@ -55,16 +55,16 @@ qt_internal_extend_target(tst_qpluginloader CONDITION QT_FEATURE_private_tests
)
qt_internal_extend_target(tst_qpluginloader CONDITION CMAKE_BUILD_TYPE STREQUAL Debug AND WIN32 AND debug_and_release
PUBLIC_LIBRARIES
LIBRARIES
# Remove: L../staticplugin/debug
)
qt_internal_extend_target(tst_qpluginloader CONDITION WIN32 AND debug_and_release AND NOT CMAKE_BUILD_TYPE STREQUAL Debug
PUBLIC_LIBRARIES
LIBRARIES
# Remove: L../staticplugin/release
)
qt_internal_extend_target(tst_qpluginloader CONDITION UNIX OR NOT debug_and_release
PUBLIC_LIBRARIES
LIBRARIES
# Remove: L../staticplugin
)

View File

@ -13,7 +13,7 @@ qt_internal_add_test(tst_quuid
qt_internal_extend_target(tst_quuid CONDITION APPLE
SOURCES
../tst_quuid_darwin.mm
PUBLIC_LIBRARIES
LIBRARIES
${FWFoundation}
)

View File

@ -17,7 +17,7 @@ set(json_resource_files
qt_internal_add_test(tst_json
SOURCES
tst_qtjson.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
TESTDATA ${json_resource_files}
)

View File

@ -10,6 +10,6 @@ qt_internal_add_test(tst_qcborstreamreader
INCLUDE_DIRECTORIES
../../../../../src/3rdparty/tinycbor/src
../../../../../src/3rdparty/tinycbor/tests/parser
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -10,6 +10,6 @@ qt_internal_add_test(tst_qcborvalue
INCLUDE_DIRECTORIES
../../../../../src/3rdparty/tinycbor/src
../../../../../src/3rdparty/tinycbor/tests/parser
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -11,7 +11,7 @@ list(APPEND test_data "typedef.q5")
qt_internal_add_test(tst_qdatastream
SOURCES
tst_qdatastream.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
TESTDATA ${test_data}
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qdatastream_core_pixmap
SOURCES
tst_qdatastream_core_pixmap.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
)

View File

@ -15,7 +15,7 @@ qt_internal_add_test(tst_qtextstream
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../"
SOURCES
../tst_qtextstream.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Network
Qt::TestPrivate
TESTDATA ${test_data}

View File

@ -10,7 +10,7 @@ list(APPEND test_data "rfc3252.txt")
qt_internal_add_test(tst_qbytearray
SOURCES
tst_qbytearray.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
TESTDATA ${test_data}
)
@ -21,6 +21,6 @@ qt_internal_add_test(tst_qbytearray
qt_internal_extend_target(tst_qbytearray CONDITION APPLE
SOURCES
tst_qbytearray_mac.mm
PUBLIC_LIBRARIES
LIBRARIES
${FWFoundation}
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qbytedatabuffer
SOURCES
tst_qbytedatabuffer.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -10,7 +10,7 @@ list(APPEND test_data "data/NormalizationTest.txt")
qt_internal_add_test(tst_qchar
SOURCES
tst_qchar.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
TESTDATA ${test_data}
)

View File

@ -9,6 +9,6 @@ qt_internal_add_test(tst_qcollator
tst_qcollator.cpp
DEFINES
QT_NO_CAST_TO_ASCII
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -6,7 +6,7 @@ qt_internal_add_test(tst_qlocale
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../"
SOURCES
../tst_qlocale.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)
@ -14,7 +14,7 @@ qt_internal_add_test(tst_qlocale
#####################################################################
qt_internal_extend_target(tst_qlocale CONDITION embedded
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
)

View File

@ -9,7 +9,7 @@ qt_internal_add_test(tst_qstring
tst_qstring.cpp
DEFINES
QT_DISABLE_DEPRECATED_BEFORE=0
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)
@ -24,6 +24,6 @@ qt_internal_extend_target(tst_qstring CONDITION NOT QT_FEATURE_doubleconversion
qt_internal_extend_target(tst_qstring CONDITION APPLE
SOURCES
tst_qstring_mac.mm
PUBLIC_LIBRARIES
LIBRARIES
${FWFoundation}
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qstringapisymmetry
SOURCES
tst_qstringapisymmetry.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -8,7 +8,7 @@ qt_internal_add_test(tst_qstringconverter
SOURCES
tst_qstringconverter.cpp
TESTDATA ${test_data}
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate # for access to Qt's feature system
)

View File

@ -7,6 +7,6 @@
qt_internal_add_test(tst_qstringiterator
SOURCES
tst_qstringiterator.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -5,7 +5,7 @@
qt_internal_add_test(tst_qunicodetools
SOURCES
tst_qunicodetools.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qfuture
SOURCES
tst_qfuture.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
)

View File

@ -7,7 +7,7 @@
qt_internal_add_test(tst_qfuturewatcher
SOURCES
tst_qfuturewatcher.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Concurrent
Qt::CorePrivate
)

Some files were not shown because too many files have changed in this diff Show More