summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/gltexture
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/render/gltexture')
-rw-r--r--tests/auto/render/gltexture/CMakeLists.txt6
-rw-r--r--tests/auto/render/gltexture/gltexture.pro13
-rw-r--r--tests/auto/render/gltexture/tst_gltexture.cpp2
3 files changed, 7 insertions, 14 deletions
diff --git a/tests/auto/render/gltexture/CMakeLists.txt b/tests/auto/render/gltexture/CMakeLists.txt
index 2bc4acb87..16f1dbee3 100644
--- a/tests/auto/render/gltexture/CMakeLists.txt
+++ b/tests/auto/render/gltexture/CMakeLists.txt
@@ -7,6 +7,12 @@
## tst_gltexture Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_gltexture LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_gltexture
SOURCES
tst_gltexture.cpp
diff --git a/tests/auto/render/gltexture/gltexture.pro b/tests/auto/render/gltexture/gltexture.pro
deleted file mode 100644
index b21cea813..000000000
--- a/tests/auto/render/gltexture/gltexture.pro
+++ /dev/null
@@ -1,13 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_gltexture
-
-QT += 3dcore 3dcore-private 3drender 3drender-private testlib
-
-CONFIG += testcase
-
-SOURCES += \
- tst_gltexture.cpp
-
-RESOURCES += \
- resources.qrc
diff --git a/tests/auto/render/gltexture/tst_gltexture.cpp b/tests/auto/render/gltexture/tst_gltexture.cpp
index 564e80bf7..f8434d18b 100644
--- a/tests/auto/render/gltexture/tst_gltexture.cpp
+++ b/tests/auto/render/gltexture/tst_gltexture.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2019 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
// TODO Remove in Qt6
#include <QtCore/qcompilerdetection.h>