diff options
Diffstat (limited to 'tests/auto/qmltest/itemgrabber')
-rw-r--r-- | tests/auto/qmltest/itemgrabber/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/qmltest/itemgrabber/CMakeLists.txt b/tests/auto/qmltest/itemgrabber/CMakeLists.txt index 378cba80d6..34b0483cd8 100644 --- a/tests/auto/qmltest/itemgrabber/CMakeLists.txt +++ b/tests/auto/qmltest/itemgrabber/CMakeLists.txt @@ -7,6 +7,12 @@ ## itemgrabber Test: ##################################################################### +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(itemgrabber LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() + qt_internal_add_test(itemgrabber GUI QMLTEST diff --git a/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml b/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml index 6ee09a9a5b..aad8722f03 100644 --- a/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml +++ b/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml @@ -1,5 +1,5 @@ // Copyright (C) 2016 Jolla Ltd, author: <gunnar.sletta@jollamobile.com> -// 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 import QtQuick 2.4 import QtTest 1.1 |