2022-07-05 11:26:52 +00:00
|
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
2022-08-19 13:21:34 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-07-05 11:26:52 +00:00
|
|
|
|
2019-10-22 07:59:13 +00:00
|
|
|
#####################################################################
|
|
|
|
## tst_qcomplextext Test:
|
|
|
|
#####################################################################
|
|
|
|
|
2023-06-29 15:37:51 +00:00
|
|
|
if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
|
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(tst_qcomplextext LANGUAGES CXX)
|
|
|
|
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
|
|
|
|
endif()
|
|
|
|
|
2019-10-22 07:59:13 +00:00
|
|
|
# Collect test data
|
|
|
|
list(APPEND test_data "data")
|
|
|
|
|
2020-09-22 08:16:58 +00:00
|
|
|
qt_internal_add_test(tst_qcomplextext
|
2019-10-22 07:59:13 +00:00
|
|
|
SOURCES
|
|
|
|
tst_qcomplextext.cpp
|
2022-07-25 15:50:38 +00:00
|
|
|
LIBRARIES
|
2020-02-12 09:24:49 +00:00
|
|
|
Qt::CorePrivate
|
2019-10-22 07:59:13 +00:00
|
|
|
Qt::Gui
|
2020-02-12 09:24:49 +00:00
|
|
|
Qt::GuiPrivate
|
2019-10-22 07:59:13 +00:00
|
|
|
TESTDATA ${test_data}
|
|
|
|
)
|
|
|
|
|
|
|
|
## Scopes:
|
|
|
|
#####################################################################
|
|
|
|
|
|
|
|
if(ANDROID)
|
|
|
|
# Resources:
|
|
|
|
set(android_testdata_resource_files
|
|
|
|
"data/BidiCharacterTest.txt"
|
|
|
|
"data/BidiTest.txt"
|
|
|
|
)
|
|
|
|
|
2020-09-22 08:16:58 +00:00
|
|
|
qt_internal_add_resource(tst_qcomplextext "android_testdata"
|
2019-10-22 07:59:13 +00:00
|
|
|
PREFIX
|
|
|
|
"/android_testdata"
|
|
|
|
FILES
|
|
|
|
${android_testdata_resource_files}
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2020-09-22 08:16:58 +00:00
|
|
|
qt_internal_extend_target(tst_qcomplextext CONDITION builtin_testdata
|
2019-10-22 07:59:13 +00:00
|
|
|
DEFINES
|
|
|
|
BUILTIN_TESTDATA
|
|
|
|
)
|