blob: 25074e716f3c33d7cd6b9db21f121f766c14856c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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()
|