summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/qshaderprogram
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/render/qshaderprogram')
-rw-r--r--tests/auto/render/qshaderprogram/CMakeLists.txt6
-rw-r--r--tests/auto/render/qshaderprogram/qshaderprogram.pro15
-rw-r--r--tests/auto/render/qshaderprogram/tst_qshaderprogram.cpp2
3 files changed, 7 insertions, 16 deletions
diff --git a/tests/auto/render/qshaderprogram/CMakeLists.txt b/tests/auto/render/qshaderprogram/CMakeLists.txt
index 87c890d0e..3c0b013f0 100644
--- a/tests/auto/render/qshaderprogram/CMakeLists.txt
+++ b/tests/auto/render/qshaderprogram/CMakeLists.txt
@@ -7,6 +7,12 @@
## tst_qshaderprogram Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qshaderprogram LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qshaderprogram
SOURCES
tst_qshaderprogram.cpp
diff --git a/tests/auto/render/qshaderprogram/qshaderprogram.pro b/tests/auto/render/qshaderprogram/qshaderprogram.pro
deleted file mode 100644
index 4ab65c455..000000000
--- a/tests/auto/render/qshaderprogram/qshaderprogram.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qshaderprogram
-
-QT += 3dcore 3dcore-private 3drender 3drender-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qshaderprogram.cpp
-
-RESOURCES += \
- shaders.qrc
-
-include(../../core/common/common.pri)
-include(../commons/commons.pri)
diff --git a/tests/auto/render/qshaderprogram/tst_qshaderprogram.cpp b/tests/auto/render/qshaderprogram/tst_qshaderprogram.cpp
index 1db1b51e5..cf096bf9a 100644
--- a/tests/auto/render/qshaderprogram/tst_qshaderprogram.cpp
+++ b/tests/auto/render/qshaderprogram/tst_qshaderprogram.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2016 Paul Lemire <paul.lemire350@gmail.com>
-// 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 <Qt3DRender/qshaderprogram.h>