cmake: add tests in corelib/time

Change-Id: Idcd5d1be7503b50a43954c1b209e48a32cc8eaa9
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Frederik Gladhorn 2019-10-03 13:15:44 +02:00 committed by Alexandru Croitor
parent a98f64af91
commit b3b2c799f8
5 changed files with 65 additions and 4 deletions

View File

@ -1,4 +1,6 @@
# Generated from time.pro.
add_subdirectory(qdate)
add_subdirectory(qdatetime)
add_subdirectory(qtime)
add_subdirectory(qtimezone)

View File

@ -10,6 +10,3 @@ add_qt_test(tst_qdate
LIBRARIES
Qt::CorePrivate
)
#### Keys ignored in scope 1:.:.:qdate.pro:<TRUE>:
# CONFIG = "testcase"

View File

@ -0,0 +1,26 @@
# Generated from qdatetime.pro.
#####################################################################
## tst_qdatetime Test:
#####################################################################
add_qt_test(tst_qdatetime
SOURCES
tst_qdatetime.cpp
LIBRARIES
Qt::CorePrivate
)
## Scopes:
#####################################################################
#### Keys ignored in scope 2:.:.:qdatetime.pro:MSVC:
# QMAKE_CFLAGS_RELEASE = "--O1"
# QMAKE_CXXFLAGS_RELEASE = "--O1"
extend_target(tst_qdatetime CONDITION APPLE
SOURCES
tst_qdatetime_mac.mm
PUBLIC_LIBRARIES
${FWFoundation}
)

View File

@ -1 +1,10 @@
add_qt_test(tst_qtime SOURCES tst_qtime.cpp)
# Generated from qtime.pro.
#####################################################################
## tst_qtime Test:
#####################################################################
add_qt_test(tst_qtime
SOURCES
tst_qtime.cpp
)

View File

@ -0,0 +1,27 @@
# Generated from qtimezone.pro.
#####################################################################
## tst_qtimezone Test:
#####################################################################
add_qt_test(tst_qtimezone
SOURCES
tst_qtimezone.cpp
LIBRARIES
Qt::CorePrivate
)
## Scopes:
#####################################################################
extend_target(tst_qtimezone CONDITION QT_FEATURE_icu
LIBRARIES
ICU::i18n ICU::uc ICU::data
)
extend_target(tst_qtimezone CONDITION APPLE
SOURCES
tst_qtimezone_darwin.mm
PUBLIC_LIBRARIES
${FWFoundation}
)