diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2020-04-27 16:46:30 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2020-04-29 22:48:45 +0200 |
commit | 3a34fdf72a4305a314c65603b56e2a0c202ccf97 (patch) | |
tree | df090904a5022c240a415db5792a5604e6fc1153 /tests/auto/corelib/tools/qcryptographichash | |
parent | 9b51d5f5713c237c244c1bff4d0bd3d0437e1b95 (diff) |
Port more tests from tests/auto/corelib/tools to CMake
Also removed add_subdirectory calls for subdirs which no longer exist.
Change-Id: I759f408ca812e1721dde495b0e23feffdeeb9c60
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools/qcryptographichash')
-rw-r--r-- | tests/auto/corelib/tools/qcryptographichash/CMakeLists.txt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qcryptographichash/CMakeLists.txt b/tests/auto/corelib/tools/qcryptographichash/CMakeLists.txt new file mode 100644 index 0000000000..4984606509 --- /dev/null +++ b/tests/auto/corelib/tools/qcryptographichash/CMakeLists.txt @@ -0,0 +1,35 @@ +# Generated from qcryptographichash.pro. + +##################################################################### +## tst_qcryptographichash Test: +##################################################################### + +# Collect test data +file(GLOB_RECURSE test_data_glob + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + data/*) +list(APPEND test_data ${test_data_glob}) + +qt_add_test(tst_qcryptographichash + SOURCES + tst_qcryptographichash.cpp + TESTDATA ${test_data} +) + +## Scopes: +##################################################################### + +if(ANDROID AND NOT ANDROID_EMBEDDED) + # Resources: + set(testdata_resource_files + "data/2c1517dad3678f03917f15849b052fd5.md5" + "data/d41d8cd98f00b204e9800998ecf8427e.md5" + ) + + qt_add_resource(tst_qcryptographichash "testdata" + PREFIX + "/" + FILES + ${testdata_resource_files} + ) +endif() |