diff options
Diffstat (limited to 'tests/auto/render/qscene2d')
-rw-r--r-- | tests/auto/render/qscene2d/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/auto/render/qscene2d/qscene2d.pro | 12 | ||||
-rw-r--r-- | tests/auto/render/qscene2d/tst_qscene2d.cpp | 2 |
3 files changed, 7 insertions, 13 deletions
diff --git a/tests/auto/render/qscene2d/CMakeLists.txt b/tests/auto/render/qscene2d/CMakeLists.txt index 3c50b2563..d84583007 100644 --- a/tests/auto/render/qscene2d/CMakeLists.txt +++ b/tests/auto/render/qscene2d/CMakeLists.txt @@ -7,6 +7,12 @@ ## qscene2d Test: ##################################################################### +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(qscene2d LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() + qt_internal_add_test(qscene2d SOURCES tst_qscene2d.cpp diff --git a/tests/auto/render/qscene2d/qscene2d.pro b/tests/auto/render/qscene2d/qscene2d.pro deleted file mode 100644 index b1d4d45a9..000000000 --- a/tests/auto/render/qscene2d/qscene2d.pro +++ /dev/null @@ -1,12 +0,0 @@ -TEMPLATE = app - -TARGET = qscene2d - -QT += 3dcore 3dcore-private 3drender 3drender-private testlib 3dquickscene2d 3dquickscene2d-private - -CONFIG += testcase - -SOURCES += tst_qscene2d.cpp - -include(../../core/common/common.pri) -include(../commons/commons.pri) diff --git a/tests/auto/render/qscene2d/tst_qscene2d.cpp b/tests/auto/render/qscene2d/tst_qscene2d.cpp index f39f1e983..6a48d596f 100644 --- a/tests/auto/render/qscene2d/tst_qscene2d.cpp +++ b/tests/auto/render/qscene2d/tst_qscene2d.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// 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 <Qt3DQuickScene2D/qscene2d.h> |