summaryrefslogtreecommitdiffstats
path: root/tests/auto/animation/qcallbackmapping
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/animation/qcallbackmapping')
-rw-r--r--tests/auto/animation/qcallbackmapping/CMakeLists.txt6
-rw-r--r--tests/auto/animation/qcallbackmapping/qcallbackmapping.pro12
-rw-r--r--tests/auto/animation/qcallbackmapping/tst_qcallbackmapping.cpp2
3 files changed, 7 insertions, 13 deletions
diff --git a/tests/auto/animation/qcallbackmapping/CMakeLists.txt b/tests/auto/animation/qcallbackmapping/CMakeLists.txt
index 43fd4a860..69053bb96 100644
--- a/tests/auto/animation/qcallbackmapping/CMakeLists.txt
+++ b/tests/auto/animation/qcallbackmapping/CMakeLists.txt
@@ -7,6 +7,12 @@
## tst_qcallbackmapping Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qcallbackmapping LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qcallbackmapping
SOURCES
tst_qcallbackmapping.cpp
diff --git a/tests/auto/animation/qcallbackmapping/qcallbackmapping.pro b/tests/auto/animation/qcallbackmapping/qcallbackmapping.pro
deleted file mode 100644
index 2ec002878..000000000
--- a/tests/auto/animation/qcallbackmapping/qcallbackmapping.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qcallbackmapping
-
-QT += 3dcore 3dcore-private 3danimation 3danimation-private testlib
-
-CONFIG += testcase
-
-SOURCES += \
- tst_qcallbackmapping.cpp
-
-include(../../core/common/common.pri)
diff --git a/tests/auto/animation/qcallbackmapping/tst_qcallbackmapping.cpp b/tests/auto/animation/qcallbackmapping/tst_qcallbackmapping.cpp
index e66c0241d..5fb77c59d 100644
--- a/tests/auto/animation/qcallbackmapping/tst_qcallbackmapping.cpp
+++ b/tests/auto/animation/qcallbackmapping/tst_qcallbackmapping.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 <Qt3DAnimation/qcallbackmapping.h>