aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmldelegatemodel
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-06-10 15:38:19 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-06-10 19:16:27 +0200
commit0f5d80f71a2be039029d41af480b4476f749c8f4 (patch)
tree69584b0e9c1b9a3c8b888285ec159d24265e67d9 /tests/auto/qml/qqmldelegatemodel
parent9eabb32822461be292dbf5728274348d0da361cf (diff)
cmake: add qqmldelegatemodel test
I'm not sure how that one is added in qmake, but now it's at least available in cmake. Task-number: QTBUG-84869 Change-Id: Icc0c02beef03bb858767f9f584f53169a3ab3ebb Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmldelegatemodel')
-rw-r--r--tests/auto/qml/qqmldelegatemodel/CMakeLists.txt42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmldelegatemodel/CMakeLists.txt b/tests/auto/qml/qqmldelegatemodel/CMakeLists.txt
new file mode 100644
index 0000000000..f29187d29e
--- /dev/null
+++ b/tests/auto/qml/qqmldelegatemodel/CMakeLists.txt
@@ -0,0 +1,42 @@
+# Generated from qqmldelegatemodel.pro.
+
+#####################################################################
+## tst_qqmldelegatemodel 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_qqmldelegatemodel
+ SOURCES
+ ../../shared/util.cpp ../../shared/util.h
+ tst_qqmldelegatemodel.cpp
+ INCLUDE_DIRECTORIES
+ ../../shared
+ PUBLIC_LIBRARIES
+ Qt::CorePrivate
+ Qt::Gui
+ Qt::Qml
+ Qt::QmlModelsPrivate
+ Qt::QmlPrivate
+ TESTDATA ${test_data}
+)
+
+#### Keys ignored in scope 1:.:.:qqmldelegatemodel.pro:<TRUE>:
+# OTHER_FILES = "data/*"
+
+## Scopes:
+#####################################################################
+
+qt_extend_target(tst_qqmldelegatemodel CONDITION ANDROID OR IOS
+ DEFINES
+ QT_QMLTEST_DATADIR=\\\":/data\\\"
+)
+
+qt_extend_target(tst_qqmldelegatemodel CONDITION NOT ANDROID AND NOT IOS
+ DEFINES
+ QT_QMLTEST_DATADIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/data\\\"
+)