diff options
Diffstat (limited to 'tests/auto/qml/qmllint/CMakeLists.txt')
-rw-r--r-- | tests/auto/qml/qmllint/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/CMakeLists.txt b/tests/auto/qml/qmllint/CMakeLists.txt index 422e7a08b3..5a3e2d9c0d 100644 --- a/tests/auto/qml/qmllint/CMakeLists.txt +++ b/tests/auto/qml/qmllint/CMakeLists.txt @@ -7,6 +7,12 @@ ## tst_qmllint Test: ##################################################################### +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_qmllint LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() + # Collect test data file(GLOB_RECURSE test_data_glob RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} @@ -42,9 +48,15 @@ qt_internal_extend_target(tst_qmllint CONDITION NOT ANDROID AND NOT IOS QT_QMLTEST_DATADIR="${CMAKE_CURRENT_SOURCE_DIR}/data" ) +if (TARGET qmllint) + add_dependencies(tst_qmllint Qt::qmllint) +endif() + if (TARGET qmljsrootgen) qt_internal_extend_target(tst_qmllint DEFINES QT_QMLJSROOTGEN_PRESENT ) + + add_dependencies(tst_qmllint Qt::qmljsrootgen) endif() |