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/repc | |
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/repc')
-rw-r--r-- | tests/auto/repc/enums/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/auto/repc/pods/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/auto/repc/signature/signatureTests/CMakeLists.txt | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/repc/enums/CMakeLists.txt b/tests/auto/repc/enums/CMakeLists.txt index 7d8e954..a60ab0e 100644 --- a/tests/auto/repc/enums/CMakeLists.txt +++ b/tests/auto/repc/enums/CMakeLists.txt @@ -6,6 +6,12 @@ ## tst_enums Test: ##################################################################### +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_enums LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() + qt_internal_add_test(tst_enums SOURCES tst_enums.cpp diff --git a/tests/auto/repc/pods/CMakeLists.txt b/tests/auto/repc/pods/CMakeLists.txt index 70d9bac..ad6eb1b 100644 --- a/tests/auto/repc/pods/CMakeLists.txt +++ b/tests/auto/repc/pods/CMakeLists.txt @@ -6,6 +6,12 @@ ## tst_repc_pods Test: ##################################################################### +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_repc_pods LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() + qt_internal_add_test(tst_repc_pods SOURCES tst_pods.cpp diff --git a/tests/auto/repc/signature/signatureTests/CMakeLists.txt b/tests/auto/repc/signature/signatureTests/CMakeLists.txt index 86ebe58..06fbb5e 100644 --- a/tests/auto/repc/signature/signatureTests/CMakeLists.txt +++ b/tests/auto/repc/signature/signatureTests/CMakeLists.txt @@ -6,6 +6,12 @@ ## tst_signature Test: ##################################################################### +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_ro_signature LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() + qt_internal_add_test(tst_ro_signature OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/" SOURCES |