diff options
Diffstat (limited to 'tests/auto/qml/qqmlcomponent/CMakeLists.txt')
-rw-r--r-- | tests/auto/qml/qqmlcomponent/CMakeLists.txt | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlcomponent/CMakeLists.txt b/tests/auto/qml/qqmlcomponent/CMakeLists.txt new file mode 100644 index 0000000000..46a8d11b3c --- /dev/null +++ b/tests/auto/qml/qqmlcomponent/CMakeLists.txt @@ -0,0 +1,61 @@ +# Generated from qqmlcomponent.pro. + +##################################################################### +## tst_qqmlcomponent Test: +##################################################################### + +# Collect test data + +file(GLOB test_data_glob + LIST_DIRECTORIES true + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + "data/*") +list(APPEND test_data ${test_data_glob}) + +add_qt_test(tst_qqmlcomponent + GUI + SOURCES + ../../shared/testhttpserver.cpp ../../shared/testhttpserver.h + ../../shared/util.cpp ../../shared/util.h + tst_qqmlcomponent.cpp + INCLUDE_DIRECTORIES + ../../shared + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::QmlPrivate + Qt::QuickPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::Network + Qt::Qml + Qt::Quick + TESTDATA ${test_data} +) + +# Resources: +add_qt_resource(tst_qqmlcomponent "qmake_immediate" + PREFIX + "/" + FILES + data/QtObjectComponent.qml +) + +#### Keys ignored in scope 1:.:.:qqmlcomponent.pro:<TRUE>: +# CONFIG = "testcase" + +## Scopes: +##################################################################### + +#### Keys ignored in scope 2:.:.:qqmlcomponent.pro:APPLE_OSX: +# CONFIG = "-app_bundle" + +extend_target(tst_qqmlcomponent CONDITION ANDROID OR APPLE_IOS + DEFINES + QT_QMLTEST_DATADIR=\\\":/data\\\" +) + +extend_target(tst_qqmlcomponent CONDITION NOT ANDROID AND NOT APPLE_IOS + DEFINES + QT_QMLTEST_DATADIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/data\\\" +) |