diff options
author | Alexandru Croitor <[email protected]> | 2025-06-03 15:50:38 +0200 |
---|---|---|
committer | Alexandru Croitor <[email protected]> | 2025-06-04 10:43:02 +0200 |
commit | 2aca1b0e9aa4220241512f3a22d175a8277c1365 (patch) | |
tree | a22b544c97e88d5f07e075ef46a5b43bccca418c /tests/auto/qml | |
parent | 37a489062d2e87e9456eb9759afb7689c8ed56f6 (diff) |
Add the boilerplate standalone test prelude to each test, so that they
can be opened with an IDE without the qt-cmake-standalone-test script,
but directly with qt-cmake or cmake.
Boilerplate was added using the following scripts:
https://git.qt.io/alcroito/cmake_refactor
Manual adjustments were made where the code was inserted in the wrong
location.
Pick-to: 6.8 6.9 6.10
Task-number: QTBUG-93020
Change-Id: Ib2fd9fe430c8215dbbfd8c91964ac1b60e0d570b
Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'tests/auto/qml')
-rw-r--r-- | tests/auto/qml/integration/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/auto/qml/usertypes/CMakeLists.txt | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/qml/integration/CMakeLists.txt b/tests/auto/qml/integration/CMakeLists.txt index 46907e5..4901df6 100644 --- a/tests/auto/qml/integration/CMakeLists.txt +++ b/tests/auto/qml/integration/CMakeLists.txt @@ -6,6 +6,12 @@ ## tst_qmlintegration Test: ##################################################################### +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_qmlintegration LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() + # Collect test data file(GLOB_RECURSE test_data_glob RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} diff --git a/tests/auto/qml/usertypes/CMakeLists.txt b/tests/auto/qml/usertypes/CMakeLists.txt index 61a74b8..3c89eb6 100644 --- a/tests/auto/qml/usertypes/CMakeLists.txt +++ b/tests/auto/qml/usertypes/CMakeLists.txt @@ -5,6 +5,13 @@ ##################################################################### ## tst_usertypes Test: ##################################################################### + +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_usertypes LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() + file(GLOB_RECURSE test_data_glob RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/data/*) |