summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/qservicelocator
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/core/qservicelocator')
-rw-r--r--tests/auto/core/qservicelocator/CMakeLists.txt6
-rw-r--r--tests/auto/core/qservicelocator/qservicelocator.pro7
-rw-r--r--tests/auto/core/qservicelocator/tst_qservicelocator.cpp2
3 files changed, 7 insertions, 8 deletions
diff --git a/tests/auto/core/qservicelocator/CMakeLists.txt b/tests/auto/core/qservicelocator/CMakeLists.txt
index 0b3139485..6d477cfb4 100644
--- a/tests/auto/core/qservicelocator/CMakeLists.txt
+++ b/tests/auto/core/qservicelocator/CMakeLists.txt
@@ -7,6 +7,12 @@
## tst_qservicelocator Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qservicelocator LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qservicelocator
SOURCES
tst_qservicelocator.cpp
diff --git a/tests/auto/core/qservicelocator/qservicelocator.pro b/tests/auto/core/qservicelocator/qservicelocator.pro
deleted file mode 100644
index 9ea02b56d..000000000
--- a/tests/auto/core/qservicelocator/qservicelocator.pro
+++ /dev/null
@@ -1,7 +0,0 @@
-TARGET = tst_qservicelocator
-CONFIG += testcase
-TEMPLATE = app
-
-SOURCES += tst_qservicelocator.cpp
-
-QT += testlib 3dcore 3dcore-private
diff --git a/tests/auto/core/qservicelocator/tst_qservicelocator.cpp b/tests/auto/core/qservicelocator/tst_qservicelocator.cpp
index 71f737a8d..dca53a5ef 100644
--- a/tests/auto/core/qservicelocator/tst_qservicelocator.cpp
+++ b/tests/auto/core/qservicelocator/tst_qservicelocator.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 <Qt3DCore/private/qservicelocator_p.h>