cmake: add corelib/thread/qthreadstorage
Fixes: QTBUG-78221 Change-Id: Icb4614f8187c16e6b13d9db1dbc6adfcd579db43 Reviewed-by: Leander Beernaert <leander.beernaert@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
fbace1f4e0
commit
06fdea1ce5
@ -10,6 +10,7 @@ if(NOT TARGET Qt::Test)
|
||||
# because a few tests link directly against those libraries.
|
||||
qt_find_package(WrapDBus1 PROVIDED_TARGETS dbus-1)
|
||||
qt_find_package(ICU COMPONENTS i18n uc data PROVIDED_TARGETS ICU::i18n ICU::uc ICU::data)
|
||||
qt_find_package(Threads PROVIDED_TARGETS Threads::Threads)
|
||||
endif()
|
||||
# special case end
|
||||
|
||||
|
@ -15,7 +15,7 @@ if(QT_FEATURE_thread)
|
||||
add_subdirectory(qthread)
|
||||
add_subdirectory(qthreadonce)
|
||||
add_subdirectory(qthreadpool)
|
||||
# add_subdirectory(qthreadstorage) ### FIXME
|
||||
add_subdirectory(qthreadstorage)
|
||||
add_subdirectory(qwaitcondition)
|
||||
add_subdirectory(qwritelocker)
|
||||
endif()
|
||||
|
@ -4,8 +4,6 @@
|
||||
## tst_qthread Test:
|
||||
#####################################################################
|
||||
|
||||
qt_find_package(Threads PROVIDED_TARGETS Threads::Threads) # special case
|
||||
|
||||
add_qt_test(tst_qthread
|
||||
SOURCES
|
||||
../../../../shared/emulationdetector.h
|
||||
|
21
tests/auto/corelib/thread/qthreadstorage/CMakeLists.txt
Normal file
21
tests/auto/corelib/thread/qthreadstorage/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
||||
# special case skip regeneration
|
||||
# Generated from qthreadstorage.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qthreadstorage Test:
|
||||
#####################################################################
|
||||
|
||||
add_qt_test(tst_qthreadstorage
|
||||
SOURCES
|
||||
tst_qthreadstorage.cpp
|
||||
LIBRARIES # special case
|
||||
Threads::Threads # special case
|
||||
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
if(NOT ANDROID AND NOT WINRT)
|
||||
add_subdirectory(crashonexit)
|
||||
endif()
|
@ -0,0 +1,15 @@
|
||||
# Generated from crashonexit.pro.
|
||||
|
||||
#####################################################################
|
||||
## crashonexit Binary:
|
||||
#####################################################################
|
||||
|
||||
add_qt_executable(crashOnExit_helper
|
||||
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." # special case
|
||||
INSTALL_DIRECTORY "${INSTALL_TESTSDIR}/tst_qthreadstorage/crashOnExit_helper" # special case
|
||||
SOURCES
|
||||
crashOnExit.cpp
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
Loading…
x
Reference in New Issue
Block a user