summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/qgraphicsapifilter
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/render/qgraphicsapifilter')
-rw-r--r--tests/auto/render/qgraphicsapifilter/CMakeLists.txt6
-rw-r--r--tests/auto/render/qgraphicsapifilter/qgraphicsapifilter.pro13
-rw-r--r--tests/auto/render/qgraphicsapifilter/tst_qgraphicsapifilter.cpp2
3 files changed, 7 insertions, 14 deletions
diff --git a/tests/auto/render/qgraphicsapifilter/CMakeLists.txt b/tests/auto/render/qgraphicsapifilter/CMakeLists.txt
index 7a9f8758e..d980431a9 100644
--- a/tests/auto/render/qgraphicsapifilter/CMakeLists.txt
+++ b/tests/auto/render/qgraphicsapifilter/CMakeLists.txt
@@ -7,6 +7,12 @@
## tst_qgraphicsapifilter Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qgraphicsapifilter LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qgraphicsapifilter
SOURCES
tst_qgraphicsapifilter.cpp
diff --git a/tests/auto/render/qgraphicsapifilter/qgraphicsapifilter.pro b/tests/auto/render/qgraphicsapifilter/qgraphicsapifilter.pro
deleted file mode 100644
index ce2d9ac12..000000000
--- a/tests/auto/render/qgraphicsapifilter/qgraphicsapifilter.pro
+++ /dev/null
@@ -1,13 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qgraphicsapifilter
-
-QT += 3dcore 3dcore-private 3drender 3drender-private testlib
-
-CONFIG += testcase
-
-SOURCES += \
- tst_qgraphicsapifilter.cpp
-
-include(../../core/common/common.pri)
-include(../commons/commons.pri)
diff --git a/tests/auto/render/qgraphicsapifilter/tst_qgraphicsapifilter.cpp b/tests/auto/render/qgraphicsapifilter/tst_qgraphicsapifilter.cpp
index f7240eb7f..4a92c9d94 100644
--- a/tests/auto/render/qgraphicsapifilter/tst_qgraphicsapifilter.cpp
+++ b/tests/auto/render/qgraphicsapifilter/tst_qgraphicsapifilter.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2015 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 <QObject>