summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/handle
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/core/handle')
-rw-r--r--tests/auto/core/handle/CMakeLists.txt6
-rw-r--r--tests/auto/core/handle/handle.pro7
-rw-r--r--tests/auto/core/handle/tst_handle.cpp2
3 files changed, 7 insertions, 8 deletions
diff --git a/tests/auto/core/handle/CMakeLists.txt b/tests/auto/core/handle/CMakeLists.txt
index a7d5e6724..899136740 100644
--- a/tests/auto/core/handle/CMakeLists.txt
+++ b/tests/auto/core/handle/CMakeLists.txt
@@ -7,6 +7,12 @@
## tst_handle Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_handle LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_handle
SOURCES
tst_handle.cpp
diff --git a/tests/auto/core/handle/handle.pro b/tests/auto/core/handle/handle.pro
deleted file mode 100644
index da2e504fe..000000000
--- a/tests/auto/core/handle/handle.pro
+++ /dev/null
@@ -1,7 +0,0 @@
-TARGET = tst_handle
-CONFIG += testcase
-TEMPLATE = app
-
-SOURCES += tst_handle.cpp
-
-QT += testlib 3dcore 3dcore-private
diff --git a/tests/auto/core/handle/tst_handle.cpp b/tests/auto/core/handle/tst_handle.cpp
index 176831dd9..568b377b7 100644
--- a/tests/auto/core/handle/tst_handle.cpp
+++ b/tests/auto/core/handle/tst_handle.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2014 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 <Qt3DCore/private/qhandle_p.h>