Debian Codegraph @

tests/auto/core5/sax/qxmlsimplereader/CMakeLists.txt

raw
1 # Copyright (C) 2022 The Qt Company Ltd.
2 # SPDX-License-Identifier: BSD-3-Clause
3
4 # Generated from qxmlsimplereader.pro.
5
6 #####################################################################
7 ## tst_qxmlsimplereader Test:
8 #####################################################################
9
10 if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
11 cmake_minimum_required(VERSION 3.16)
12 project(tst_qxmlsimplereader LANGUAGES CXX)
13 find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
14 endif()
15
16 # Collect test data
17 file(GLOB_RECURSE test_data_glob
18 RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
19 encodings/*)
20 list(APPEND test_data ${test_data_glob})
21 file(GLOB_RECURSE test_data_glob
22 RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
23 xmldocs/*)
24 list(APPEND test_data ${test_data_glob})
25
26 qt_internal_add_test(tst_qxmlsimplereader
27 SOURCES
28 parser/parser.cpp parser/parser.h
29 tst_qxmlsimplereader.cpp
30 INCLUDE_DIRECTORIES
31 parser
32 LIBRARIES
33 Qt::Core5Compat
34 Qt::Network
35 Qt::Xml
36 TESTDATA ${test_data}
37 )