Make sure qml test data is packaged as test resources

This will make sure the test data is packaged and available
on device at runtime.

Task-number: QTBUG-88846
Pick-to: 6.2 6.3
Change-Id: I9a62299243a784b5e3857ddd968a2abcdd3d6d54
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
This commit is contained in:
Assam Boudjelthia 2022-05-18 00:26:03 +03:00
parent ff85934152
commit efdb022abc
1 changed files with 6 additions and 0 deletions

View File

@ -1,9 +1,15 @@
file(GLOB_RECURSE test_data_glob
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
*)
list(APPEND test_data ${test_data_glob})
qt_internal_add_test(tst_qmltest
QMLTEST
SOURCES
tst_qmltest.cpp
PUBLIC_LIBRARIES
Qt::Gui
TESTDATA ${test_data}
)
set(qmltest_resource_files