diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-10-03 13:15:44 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-10-04 06:30:36 +0000 |
commit | b3b2c799f84381a568ff5f6093dbee9ccbb48441 (patch) | |
tree | 0c5804d77287e0a0a709d605c11c7dea5c701509 /tests | |
parent | a98f64af91f8e96d2efe2b57d64f9fc41e2006b4 (diff) |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/time/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/auto/corelib/time/qdate/CMakeLists.txt | 3 | ||||
-rw-r--r-- | tests/auto/corelib/time/qdatetime/CMakeLists.txt | 26 | ||||
-rw-r--r-- | tests/auto/corelib/time/qtime/CMakeLists.txt | 11 | ||||
-rw-r--r-- | tests/auto/corelib/time/qtimezone/CMakeLists.txt | 27 |
5 files changed, 65 insertions, 4 deletions
diff --git a/tests/auto/corelib/time/CMakeLists.txt b/tests/auto/corelib/time/CMakeLists.txt index 733f75b8af..fa73fc03fe 100644 --- a/tests/auto/corelib/time/CMakeLists.txt +++ b/tests/auto/corelib/time/CMakeLists.txt @@ -1,4 +1,6 @@ # Generated from time.pro. add_subdirectory(qdate) +add_subdirectory(qdatetime) add_subdirectory(qtime) +add_subdirectory(qtimezone) diff --git a/tests/auto/corelib/time/qdate/CMakeLists.txt b/tests/auto/corelib/time/qdate/CMakeLists.txt index 8514c915ad..9a90956bd6 100644 --- a/tests/auto/corelib/time/qdate/CMakeLists.txt +++ b/tests/auto/corelib/time/qdate/CMakeLists.txt @@ -10,6 +10,3 @@ add_qt_test(tst_qdate LIBRARIES Qt::CorePrivate ) - -#### Keys ignored in scope 1:.:.:qdate.pro:<TRUE>: -# CONFIG = "testcase" diff --git a/tests/auto/corelib/time/qdatetime/CMakeLists.txt b/tests/auto/corelib/time/qdatetime/CMakeLists.txt new file mode 100644 index 0000000000..b215ca6efa --- /dev/null +++ b/tests/auto/corelib/time/qdatetime/CMakeLists.txt @@ -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} +) diff --git a/tests/auto/corelib/time/qtime/CMakeLists.txt b/tests/auto/corelib/time/qtime/CMakeLists.txt index 0b8b4c81f3..ef224b45e3 100644 --- a/tests/auto/corelib/time/qtime/CMakeLists.txt +++ b/tests/auto/corelib/time/qtime/CMakeLists.txt @@ -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 +) diff --git a/tests/auto/corelib/time/qtimezone/CMakeLists.txt b/tests/auto/corelib/time/qtimezone/CMakeLists.txt new file mode 100644 index 0000000000..7d9a8ccc88 --- /dev/null +++ b/tests/auto/corelib/time/qtimezone/CMakeLists.txt @@ -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} +) |