diff options
Diffstat (limited to 'tests/auto/qml/qmlformat/CMakeLists.txt')
-rw-r--r-- | tests/auto/qml/qmlformat/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlformat/CMakeLists.txt b/tests/auto/qml/qmlformat/CMakeLists.txt index 2c908a9190..76923d66de 100644 --- a/tests/auto/qml/qmlformat/CMakeLists.txt +++ b/tests/auto/qml/qmlformat/CMakeLists.txt @@ -7,6 +7,12 @@ ## tst_qmlformat Test: ##################################################################### +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_qmlformat LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() + # Collect test data file(GLOB_RECURSE test_data_glob RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} @@ -24,8 +30,11 @@ qt_internal_add_test(tst_qmlformat Qt::TestPrivate Qt::QuickTestUtilsPrivate TESTDATA ${test_data} + TIMEOUT 3000 ) +add_dependencies(tst_qmlformat Qt::qmlformat) + ## Scopes: ##################################################################### |