diff options
Diffstat (limited to 'tests/auto/qml/qqmlengine/CMakeLists.txt')
-rw-r--r-- | tests/auto/qml/qqmlengine/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlengine/CMakeLists.txt b/tests/auto/qml/qqmlengine/CMakeLists.txt index 0869fe7ccc..9745f31bdb 100644 --- a/tests/auto/qml/qqmlengine/CMakeLists.txt +++ b/tests/auto/qml/qqmlengine/CMakeLists.txt @@ -7,6 +7,12 @@ ## tst_qqmlengine Test: ##################################################################### +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_qqmlengine LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() + # Collect test data file(GLOB_RECURSE test_data_glob RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} @@ -34,6 +40,7 @@ qt_add_qml_module(tst_qqmlengine_qml SOURCES "declarativelyregistered.h" "declarativelyregistered.cpp" + "variantlistQJsonConversion.h" RESOURCE_PREFIX "/" OUTPUT_DIRECTORY |