CMake: Remove the usage of QT_SOURCE_TREE from tests
The ${QT_SOURCE_TREE}/src/network include paths of several tests are
apparently not needed anymore. Remove those.
tst_qfilesystementry and tst_qfreelist are the only tests that actually
need to reference files in qtbase's source tree. Simply use the paths
relative to the project file.
Task-number: QTBUG-88090
Change-Id: Ic6f341e001338c1b07dce6e58316245bc9560c5e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
bb10
parent
3ab4742c00
commit
72a90810cb
|
|
@ -6,7 +6,8 @@
|
|||
|
||||
qt_internal_add_test(tst_qfilesystementry
|
||||
SOURCES
|
||||
${QT_SOURCE_TREE}/src/corelib/io/qfilesystementry.cpp ${QT_SOURCE_TREE}/src/corelib/io/qfilesystementry_p.h
|
||||
../../../../../src/corelib/io/qfilesystementry.cpp
|
||||
../../../../../src/corelib/io/qfilesystementry_p.h
|
||||
tst_qfilesystementry.cpp
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::CorePrivate
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ endif()
|
|||
qt_internal_add_test(tst_qsocketnotifier
|
||||
SOURCES
|
||||
tst_qsocketnotifier.cpp
|
||||
INCLUDE_DIRECTORIES
|
||||
${QT_SOURCE_TREE}/src/network
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::Network
|
||||
|
|
|
|||
|
|
@ -16,5 +16,5 @@ qt_internal_add_test(tst_qfreelist
|
|||
|
||||
qt_internal_extend_target(tst_qfreelist CONDITION NOT QT_FEATURE_private_tests
|
||||
SOURCES
|
||||
${QT_SOURCE_TREE}/src/corelib/tools/qfreelist.cpp
|
||||
../../../../../src/corelib/tools/qfreelist.cpp
|
||||
)
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ endif()
|
|||
qt_internal_add_test(tst_platformsocketengine
|
||||
SOURCES
|
||||
tst_platformsocketengine.cpp
|
||||
INCLUDE_DIRECTORIES
|
||||
${QT_SOURCE_TREE}/src/network
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::NetworkPrivate
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ endif()
|
|||
qt_internal_add_test(tst_qhttpsocketengine
|
||||
SOURCES
|
||||
tst_qhttpsocketengine.cpp
|
||||
INCLUDE_DIRECTORIES
|
||||
${QT_SOURCE_TREE}/src/network
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::NetworkPrivate
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ endif()
|
|||
qt_internal_add_test(tst_qsocks5socketengine
|
||||
SOURCES
|
||||
tst_qsocks5socketengine.cpp
|
||||
INCLUDE_DIRECTORIES
|
||||
${QT_SOURCE_TREE}/src/network
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::NetworkPrivate
|
||||
|
|
|
|||
Loading…
Reference in New Issue