diff options
Diffstat (limited to 'tests/auto/core/qscheduler')
-rw-r--r-- | tests/auto/core/qscheduler/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/auto/core/qscheduler/qscheduler.pro | 7 | ||||
-rw-r--r-- | tests/auto/core/qscheduler/tst_qscheduler.cpp | 2 |
3 files changed, 7 insertions, 8 deletions
diff --git a/tests/auto/core/qscheduler/CMakeLists.txt b/tests/auto/core/qscheduler/CMakeLists.txt index 90b2c6a9a..c5be7716d 100644 --- a/tests/auto/core/qscheduler/CMakeLists.txt +++ b/tests/auto/core/qscheduler/CMakeLists.txt @@ -7,6 +7,12 @@ ## tst_qscheduler Test: ##################################################################### +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_qscheduler LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() + qt_internal_add_test(tst_qscheduler SOURCES tst_qscheduler.cpp diff --git a/tests/auto/core/qscheduler/qscheduler.pro b/tests/auto/core/qscheduler/qscheduler.pro deleted file mode 100644 index 078716116..000000000 --- a/tests/auto/core/qscheduler/qscheduler.pro +++ /dev/null @@ -1,7 +0,0 @@ -TARGET = tst_qscheduler -CONFIG += testcase -TEMPLATE = app - -SOURCES += tst_qscheduler.cpp - -QT += testlib 3dcore 3dcore-private diff --git a/tests/auto/core/qscheduler/tst_qscheduler.cpp b/tests/auto/core/qscheduler/tst_qscheduler.cpp index c86ea8f54..2489818ba 100644 --- a/tests/auto/core/qscheduler/tst_qscheduler.cpp +++ b/tests/auto/core/qscheduler/tst_qscheduler.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2020 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/QtTest> #include <Qt3DCore/qaspectjob.h> |