diff options
Diffstat (limited to 'tests/auto/gui/text/qfont/CMakeLists.txt')
-rw-r--r-- | tests/auto/gui/text/qfont/CMakeLists.txt | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/tests/auto/gui/text/qfont/CMakeLists.txt b/tests/auto/gui/text/qfont/CMakeLists.txt index b7e30318fb..88ae9959e4 100644 --- a/tests/auto/gui/text/qfont/CMakeLists.txt +++ b/tests/auto/gui/text/qfont/CMakeLists.txt @@ -1,35 +1,38 @@ -# Generated from qfont.pro. +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause ##################################################################### ## tst_qfont Test: ##################################################################### -qt_add_test(tst_qfont - SOURCES - tst_qfont.cpp - PUBLIC_LIBRARIES - Qt::CorePrivate - Qt::Gui - Qt::GuiPrivate -) +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_qfont LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() # Resources: set(testfont_resource_files + "datastream.515" "weirdfont.otf" ) -qt_add_resource(tst_qfont "testfont" - PREFIX - "/" - FILES - ${testfont_resource_files} +qt_internal_add_test(tst_qfont + SOURCES + tst_qfont.cpp + LIBRARIES + Qt::CorePrivate + Qt::Gui + Qt::GuiPrivate + Qt::TestPrivate + TESTDATA ${testfont_resource_files} + BUILTIN_TESTDATA ) - ## Scopes: ##################################################################### -qt_extend_target(tst_qfont CONDITION TARGET Qt::Widgets - PUBLIC_LIBRARIES +qt_internal_extend_target(tst_qfont CONDITION TARGET Qt::Widgets + LIBRARIES Qt::Widgets ) |