Build and test QtConcurrent
Change-Id: I2d4b64d3e9b2cb22c67ce462155e73b5d600fb32 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
f43667a6a1
commit
465da04bcb
@ -44,9 +44,18 @@ endfunction()
|
||||
find_or_build_bootstrap_names()
|
||||
|
||||
add_subdirectory(corelib)
|
||||
add_subdirectory(network)
|
||||
add_subdirectory(xml)
|
||||
add_subdirectory(dbus)
|
||||
if (QT_FEATURE_concurrent)
|
||||
add_subdirectory(concurrent)
|
||||
endif()
|
||||
if (QT_FEATURE_network)
|
||||
add_subdirectory(network)
|
||||
endif()
|
||||
if (QT_FEATURE_xml)
|
||||
add_subdirectory(xml)
|
||||
endif()
|
||||
if (QT_FEATURE_dbus)
|
||||
add_subdirectory(dbus)
|
||||
endif()
|
||||
add_subdirectory(tools)
|
||||
if(QT_FEATURE_gui)
|
||||
add_subdirectory(gui)
|
||||
@ -61,5 +70,7 @@ if(QT_FEATURE_gui)
|
||||
add_subdirectory(platformsupport)
|
||||
add_subdirectory(platformheaders)
|
||||
endif()
|
||||
add_subdirectory(testlib)
|
||||
if (QT_FEATURE_testlib)
|
||||
add_subdirectory(testlib)
|
||||
endif()
|
||||
add_subdirectory(plugins)
|
||||
|
25
src/concurrent/CMakeLists.txt
Normal file
25
src/concurrent/CMakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
||||
add_qt_module(Concurrent
|
||||
SOURCES
|
||||
qtconcurrent_global.h
|
||||
qtconcurrentcompilertest.h
|
||||
qtconcurrentexception.h
|
||||
qtconcurrentfilter.cpp qtconcurrentfilter.h
|
||||
qtconcurrentfilterkernel.h
|
||||
qtconcurrentfunctionwrappers.h
|
||||
qtconcurrentiteratekernel.cpp qtconcurrentiteratekernel.h
|
||||
qtconcurrentmap.cpp qtconcurrentmap.h
|
||||
qtconcurrentmapkernel.h
|
||||
qtconcurrentmedian.h
|
||||
qtconcurrentreducekernel.h
|
||||
qtconcurrentrun.cpp qtconcurrentrun.h
|
||||
qtconcurrentrunbase.h
|
||||
qtconcurrentstoredfunctioncall.h
|
||||
qtconcurrentthreadengine.cpp qtconcurrentthreadengine.h
|
||||
DEFINES
|
||||
QT_NO_USING_NAMESPACE
|
||||
QT_NO_FOREACH
|
||||
LIBRARIES Qt::CorePrivate
|
||||
PUBLIC_LIBRARIES Qt::Core
|
||||
)
|
||||
|
||||
add_qt_docs(./doc/qtconcurrent.qdocconf)
|
@ -42,7 +42,7 @@ if (TARGET Qt::Xml)
|
||||
# add_subdirectory("xml")
|
||||
endif()
|
||||
if (TARGET Qt::Concurrent)
|
||||
# add_subdirectory("concurrent")
|
||||
add_subdirectory("concurrent")
|
||||
endif()
|
||||
# add_subdirectory("other")
|
||||
if (TARGET Qt::Widgets)
|
||||
|
8
tests/auto/concurrent/CMakeLists.txt
Normal file
8
tests/auto/concurrent/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
# Generated from concurrent.pro.
|
||||
|
||||
add_subdirectory(qtconcurrentfilter)
|
||||
add_subdirectory(qtconcurrentiteratekernel)
|
||||
add_subdirectory(qtconcurrentmap)
|
||||
add_subdirectory(qtconcurrentmedian)
|
||||
add_subdirectory(qtconcurrentrun)
|
||||
add_subdirectory(qtconcurrentthreadengine)
|
14
tests/auto/concurrent/qtconcurrentfilter/CMakeLists.txt
Normal file
14
tests/auto/concurrent/qtconcurrentfilter/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
# Generated from qtconcurrentfilter.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qtconcurrentfilter Test:
|
||||
#####################################################################
|
||||
|
||||
add_qt_test(tst_qtconcurrentfilter
|
||||
SOURCES
|
||||
tst_qtconcurrentfilter.cpp
|
||||
DEFINES
|
||||
QT_STRICT_ITERATORS
|
||||
LIBRARIES
|
||||
Qt::Concurrent
|
||||
)
|
@ -0,0 +1,12 @@
|
||||
# Generated from qtconcurrentiteratekernel.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qtconcurrentiteratekernel Test:
|
||||
#####################################################################
|
||||
|
||||
add_qt_test(tst_qtconcurrentiteratekernel
|
||||
SOURCES
|
||||
tst_qtconcurrentiteratekernel.cpp
|
||||
LIBRARIES
|
||||
Qt::Concurrent
|
||||
)
|
20
tests/auto/concurrent/qtconcurrentmap/CMakeLists.txt
Normal file
20
tests/auto/concurrent/qtconcurrentmap/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
# Generated from qtconcurrentmap.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qtconcurrentmap Test:
|
||||
#####################################################################
|
||||
|
||||
add_qt_test(tst_qtconcurrentmap
|
||||
SOURCES
|
||||
tst_qtconcurrentmap.cpp
|
||||
DEFINES
|
||||
QT_STRICT_ITERATORS
|
||||
LIBRARIES
|
||||
Qt::Concurrent
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
#
|
||||
#extend_target(tst_qtconcurrentmap CONDITION contains(QT_CONFIG, c++1z)
|
||||
#)
|
14
tests/auto/concurrent/qtconcurrentmedian/CMakeLists.txt
Normal file
14
tests/auto/concurrent/qtconcurrentmedian/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
# Generated from qtconcurrentmedian.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qtconcurrentmedian Test:
|
||||
#####################################################################
|
||||
|
||||
add_qt_test(tst_qtconcurrentmedian
|
||||
SOURCES
|
||||
tst_qtconcurrentmedian.cpp
|
||||
DEFINES
|
||||
QT_STRICT_ITERATORS
|
||||
LIBRARIES
|
||||
Qt::Concurrent
|
||||
)
|
18
tests/auto/concurrent/qtconcurrentrun/CMakeLists.txt
Normal file
18
tests/auto/concurrent/qtconcurrentrun/CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated from qtconcurrentrun.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qtconcurrentrun Test:
|
||||
#####################################################################
|
||||
|
||||
add_qt_test(tst_qtconcurrentrun
|
||||
SOURCES
|
||||
tst_qtconcurrentrun.cpp
|
||||
LIBRARIES
|
||||
Qt::Concurrent
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
#
|
||||
#extend_target(tst_qtconcurrentrun CONDITION contains(QT_CONFIG, c++1z)
|
||||
#)
|
@ -0,0 +1,12 @@
|
||||
# Generated from qtconcurrentthreadengine.pro.
|
||||
|
||||
#####################################################################
|
||||
## tst_qtconcurrentthreadengine Test:
|
||||
#####################################################################
|
||||
|
||||
add_qt_test(tst_qtconcurrentthreadengine
|
||||
SOURCES
|
||||
tst_qtconcurrentthreadengine.cpp
|
||||
LIBRARIES
|
||||
Qt::Concurrent
|
||||
)
|
Loading…
Reference in New Issue
Block a user