diff options
Diffstat (limited to 'tests/auto/qml/qmltc/CMakeLists.txt')
-rw-r--r-- | tests/auto/qml/qmltc/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/qml/qmltc/CMakeLists.txt b/tests/auto/qml/qmltc/CMakeLists.txt index 4b86a6c018..1e6c6b9e30 100644 --- a/tests/auto/qml/qmltc/CMakeLists.txt +++ b/tests/auto/qml/qmltc/CMakeLists.txt @@ -1,8 +1,16 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_qmltc LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() + add_subdirectory(QmltcTests) add_subdirectory(NamespaceTest/Subfolder) +add_subdirectory(QmltcExportedTests) +add_subdirectory(QmltcExportedNoFileNameTest) set(test_sources nameconflict.h nameconflict.cpp @@ -18,6 +26,11 @@ set(qmltc_module_libs # automatic type registration that comes from the plugin) qmltc_test_moduleplugin qmltc_namespace_test_module + qmltc_namespace_test_moduleplugin + qmltc_exported_tests_module + qmltc_exported_tests_moduleplugin + qmltc_exported_no_file_name_test_module + qmltc_exported_no_file_name_test_moduleplugin ) qt_internal_add_test(tst_qmltc_diskcache SOURCES ${test_sources} @@ -25,6 +38,7 @@ qt_internal_add_test(tst_qmltc_diskcache ) target_compile_definitions(tst_qmltc_diskcache PRIVATE QMLTC_TESTS_DISABLE_CACHE=0 + QT_NO_URL_CAST_FROM_STRING #QTBUG-113875 ) qt_internal_add_test(tst_qmltc_nodiskcache @@ -33,6 +47,7 @@ qt_internal_add_test(tst_qmltc_nodiskcache ) target_compile_definitions(tst_qmltc_nodiskcache PRIVATE QMLTC_TESTS_DISABLE_CACHE=1 + QT_NO_URL_CAST_FROM_STRING #QTBUG-113875 ) # Add qmltc documentation example to the tests. This is not beautiful but allows |