summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/rhi/rhi_rendercommands
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/render/rhi/rhi_rendercommands')
-rw-r--r--tests/auto/render/rhi/rhi_rendercommands/CMakeLists.txt6
-rw-r--r--tests/auto/render/rhi/rhi_rendercommands/rhi_rendercommands.pro15
-rw-r--r--tests/auto/render/rhi/rhi_rendercommands/tst_rhi_rendercommands.cpp2
3 files changed, 7 insertions, 16 deletions
diff --git a/tests/auto/render/rhi/rhi_rendercommands/CMakeLists.txt b/tests/auto/render/rhi/rhi_rendercommands/CMakeLists.txt
index 586814525..6a4a424c4 100644
--- a/tests/auto/render/rhi/rhi_rendercommands/CMakeLists.txt
+++ b/tests/auto/render/rhi/rhi_rendercommands/CMakeLists.txt
@@ -7,6 +7,12 @@
## tst_rhi_rendercommands Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_rhi_rendercommands LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_rhi_rendercommands
SOURCES
tst_rhi_rendercommands.cpp
diff --git a/tests/auto/render/rhi/rhi_rendercommands/rhi_rendercommands.pro b/tests/auto/render/rhi/rhi_rendercommands/rhi_rendercommands.pro
deleted file mode 100644
index 33d26fed8..000000000
--- a/tests/auto/render/rhi/rhi_rendercommands/rhi_rendercommands.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_rhi_rendercommands
-
-QT += 3dcore 3dcore-private 3drender 3drender-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_rhi_rendercommands.cpp
-
-include(../../../core/common/common.pri)
-include(../../commons/commons.pri)
-
-# Link Against RHI Renderer Plugin
-include(../rhi_render_plugin.pri)
diff --git a/tests/auto/render/rhi/rhi_rendercommands/tst_rhi_rendercommands.cpp b/tests/auto/render/rhi/rhi_rendercommands/tst_rhi_rendercommands.cpp
index 1dda4411d..7e93d0514 100644
--- a/tests/auto/render/rhi/rhi_rendercommands/tst_rhi_rendercommands.cpp
+++ b/tests/auto/render/rhi/rhi_rendercommands/tst_rhi_rendercommands.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2020 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 <qbackendnodetester.h>