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