aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qv4identifiertable
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2023-06-29 17:46:25 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2023-07-05 12:34:11 +0200
commit5818f97e70c90c545a745a066b005f595d44c252 (patch)
tree6d3510ff63a8ff311608f4b2d4a773ea816188ae /tests/auto/qml/qv4identifiertable
parent945b9e692aca61b1e4e411596e783ad299317468 (diff)
CMake: Make qml tests standalone projects
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 follow script: https://git.qt.io/alcroito/cmake_refactor Manual adjustments were made where the code was inserted in the wrong location. Task-number: QTBUG-93020 Change-Id: Ia68c9d263e7454f0c4a26c29b10f1c535d08e2f6 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
Diffstat (limited to 'tests/auto/qml/qv4identifiertable')
-rw-r--r--tests/auto/qml/qv4identifiertable/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qv4identifiertable/CMakeLists.txt b/tests/auto/qml/qv4identifiertable/CMakeLists.txt
index 5c785b0b74..c0350d6ef7 100644
--- a/tests/auto/qml/qv4identifiertable/CMakeLists.txt
+++ b/tests/auto/qml/qv4identifiertable/CMakeLists.txt
@@ -7,6 +7,12 @@
## tst_qv4identifiertable Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qv4identifiertable LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qv4identifiertable
SOURCES
tst_qv4identifiertable.cpp