summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/qscene
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/core/qscene')
-rw-r--r--tests/auto/core/qscene/CMakeLists.txt6
-rw-r--r--tests/auto/core/qscene/qscene.pro10
-rw-r--r--tests/auto/core/qscene/tst_qscene.cpp2
3 files changed, 7 insertions, 11 deletions
diff --git a/tests/auto/core/qscene/CMakeLists.txt b/tests/auto/core/qscene/CMakeLists.txt
index 57f65e0d8..56d6debdc 100644
--- a/tests/auto/core/qscene/CMakeLists.txt
+++ b/tests/auto/core/qscene/CMakeLists.txt
@@ -7,6 +7,12 @@
## tst_qscene Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qscene LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qscene
SOURCES
tst_qscene.cpp
diff --git a/tests/auto/core/qscene/qscene.pro b/tests/auto/core/qscene/qscene.pro
deleted file mode 100644
index 150b86f71..000000000
--- a/tests/auto/core/qscene/qscene.pro
+++ /dev/null
@@ -1,10 +0,0 @@
-TARGET = tst_qscene
-CONFIG += testcase
-TEMPLATE = app
-
-QT += testlib core-private 3dcore 3dcore-private
-
-SOURCES += \
- tst_qscene.cpp
-
-include(../common/common.pri)
diff --git a/tests/auto/core/qscene/tst_qscene.cpp b/tests/auto/core/qscene/tst_qscene.cpp
index ce20eb364..1ac4c959c 100644
--- a/tests/auto/core/qscene/tst_qscene.cpp
+++ b/tests/auto/core/qscene/tst_qscene.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <Qt3DCore/private/qscene_p.h>