Revision control

Copy as Markdown

# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
# Generated from qxmlsimplereader.pro.
#####################################################################
## tst_qxmlsimplereader Test:
#####################################################################
if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
cmake_minimum_required(VERSION 3.16)
project(tst_qxmlsimplereader LANGUAGES CXX)
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
endif()
# Collect test data
file(GLOB_RECURSE test_data_glob
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
encodings/*)
list(APPEND test_data ${test_data_glob})
file(GLOB_RECURSE test_data_glob
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
xmldocs/*)
list(APPEND test_data ${test_data_glob})
qt_internal_add_test(tst_qxmlsimplereader
SOURCES
parser/parser.cpp parser/parser.h
tst_qxmlsimplereader.cpp
INCLUDE_DIRECTORIES
parser
LIBRARIES
Qt::Core5Compat
Qt::Network
Qt::Xml
TESTDATA ${test_data}
)
# This test and tst_qxmlinputsource both bind the same hard-coded TCP
# port (1088). Serialize their runs:
if(TEST tst_qxmlsimplereader)
set_tests_properties(tst_qxmlsimplereader PROPERTIES
RESOURCE_LOCK tcp_port_1088)
endif()