diff options
Diffstat (limited to 'tests/auto/xml/sax')
-rw-r--r-- | tests/auto/xml/sax/CMakeLists.txt | 7 | ||||
-rw-r--r-- | tests/auto/xml/sax/qxml/CMakeLists.txt | 16 | ||||
-rw-r--r-- | tests/auto/xml/sax/qxmlinputsource/CMakeLists.txt | 13 | ||||
-rw-r--r-- | tests/auto/xml/sax/qxmlsimplereader/CMakeLists.txt | 27 | ||||
-rw-r--r-- | tests/auto/xml/sax/qxmlsimplereader/parser/CMakeLists.txt | 19 |
5 files changed, 82 insertions, 0 deletions
diff --git a/tests/auto/xml/sax/CMakeLists.txt b/tests/auto/xml/sax/CMakeLists.txt new file mode 100644 index 0000000000..dd826d5e4f --- /dev/null +++ b/tests/auto/xml/sax/CMakeLists.txt @@ -0,0 +1,7 @@ +# Generated from sax.pro. + +add_subdirectory(qxml) +if(TARGET Qt::Network) + add_subdirectory(qxmlinputsource) + add_subdirectory(qxmlsimplereader) +endif() diff --git a/tests/auto/xml/sax/qxml/CMakeLists.txt b/tests/auto/xml/sax/qxml/CMakeLists.txt new file mode 100644 index 0000000000..bfbf7fe979 --- /dev/null +++ b/tests/auto/xml/sax/qxml/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from qxml.pro. + +##################################################################### +## tst_qxml Test: +##################################################################### + +# Collect test data +list(APPEND test_data "0x010D.xml") + +add_qt_test(tst_qxml + SOURCES + tst_qxml.cpp + PUBLIC_LIBRARIES + Qt::Xml + TESTDATA ${test_data} +) diff --git a/tests/auto/xml/sax/qxmlinputsource/CMakeLists.txt b/tests/auto/xml/sax/qxmlinputsource/CMakeLists.txt new file mode 100644 index 0000000000..48ba5f6e3f --- /dev/null +++ b/tests/auto/xml/sax/qxmlinputsource/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from qxmlinputsource.pro. + +##################################################################### +## tst_qxmlinputsource Test: +##################################################################### + +add_qt_test(tst_qxmlinputsource + SOURCES + tst_qxmlinputsource.cpp + PUBLIC_LIBRARIES + Qt::Network + Qt::Xml +) diff --git a/tests/auto/xml/sax/qxmlsimplereader/CMakeLists.txt b/tests/auto/xml/sax/qxmlsimplereader/CMakeLists.txt new file mode 100644 index 0000000000..19fa0a002f --- /dev/null +++ b/tests/auto/xml/sax/qxmlsimplereader/CMakeLists.txt @@ -0,0 +1,27 @@ +# Generated from qxmlsimplereader.pro. + +##################################################################### +## tst_qxmlsimplereader Test: +##################################################################### + +# 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}) + +add_qt_test(tst_qxmlsimplereader + SOURCES + parser/parser.cpp parser/parser.h + tst_qxmlsimplereader.cpp + INCLUDE_DIRECTORIES + parser + PUBLIC_LIBRARIES + Qt::Network + Qt::Xml + TESTDATA ${test_data} +) diff --git a/tests/auto/xml/sax/qxmlsimplereader/parser/CMakeLists.txt b/tests/auto/xml/sax/qxmlsimplereader/parser/CMakeLists.txt new file mode 100644 index 0000000000..6ffb17ac0f --- /dev/null +++ b/tests/auto/xml/sax/qxmlsimplereader/parser/CMakeLists.txt @@ -0,0 +1,19 @@ +# special case skip regeneration + +cmake_minimum_required(VERSION 3.14.0) + +project(Parser CXX) +find_package(Qt6 REQUIRED COMPONENTS Core Gui Xml) + +add_executable(parser) + +target_sources(parser PRIVATE + main.cpp + parser.cpp + parser.h +) + +target_link_libraries(parser PRIVATE + Qt::Gui + Qt::Xml +) |