summaryrefslogtreecommitdiffstats
path: root/tests/auto/modelview
diff options
context:
space:
mode:
authorAlexandru Croitor <[email protected]>2025-06-03 15:50:38 +0200
committerAlexandru Croitor <[email protected]>2025-06-04 10:43:02 +0200
commit2aca1b0e9aa4220241512f3a22d175a8277c1365 (patch)
treea22b544c97e88d5f07e075ef46a5b43bccca418c /tests/auto/modelview
parent37a489062d2e87e9456eb9759afb7689c8ed56f6 (diff)
CMake: Make qtremoteobjects tests standalone projectsHEADdev
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/modelview')
-rw-r--r--tests/auto/modelview/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/modelview/CMakeLists.txt b/tests/auto/modelview/CMakeLists.txt
index e008c10..8b84825 100644
--- a/tests/auto/modelview/CMakeLists.txt
+++ b/tests/auto/modelview/CMakeLists.txt
@@ -6,6 +6,12 @@
## tst_modelview Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_modelview LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_modelview
SOURCES
tst_modelview.cpp