diff options
Diffstat (limited to 'sources/shiboken6/tests/qtxmltosphinxtest/CMakeLists.txt')
-rw-r--r-- | sources/shiboken6/tests/qtxmltosphinxtest/CMakeLists.txt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/qtxmltosphinxtest/CMakeLists.txt b/sources/shiboken6/tests/qtxmltosphinxtest/CMakeLists.txt new file mode 100644 index 000000000..25074e716 --- /dev/null +++ b/sources/shiboken6/tests/qtxmltosphinxtest/CMakeLists.txt @@ -0,0 +1,38 @@ +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +cmake_minimum_required(VERSION 3.18) + +project(qtxmltosphinxtest) + +set(CMAKE_AUTOMOC ON) + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Test) + +set(generator_src_dir ${CMAKE_CURRENT_SOURCE_DIR}/../../generator) +set(api_extractor_src_dir ${CMAKE_CURRENT_SOURCE_DIR}/../../ApiExtractor) + +set(qtxmltosphinxtest_SRC + ${generator_src_dir}/qtdoc/qtxmltosphinx.cpp + ${api_extractor_src_dir}/codesniphelpers.cpp + ${api_extractor_src_dir}/textstream.cpp + qtxmltosphinxtest.cpp + qtxmltosphinxtest.h) + +include_directories(${CMAKE_CURRENT_BINARY_DIR} + ${api_extractor_src_dir} + ${generator_src_dir} + ${generator_src_dir}/shiboken + ${generator_src_dir}/qtdoc) + +add_executable(qtxmltosphinxtest ${qtxmltosphinxtest_SRC}) + +target_link_libraries(qtxmltosphinxtest PRIVATE + Qt::Core + Qt::Test) + +add_test("qtxmltosphinx" qtxmltosphinxtest) +if (INSTALL_TESTS) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/qtxmltosphinxtest DESTINATION ${TEST_INSTALL_DIR}) +endif() |