-
Notifications
You must be signed in to change notification settings - Fork 43
/
CMakeLists.txt
65 lines (57 loc) · 1.7 KB
/
CMakeLists.txt
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
# Generated from qtdoc.pro.
cmake_minimum_required(VERSION 3.16)
include(.cmake.conf)
project(QtDoc # special case
VERSION "${QT_REPO_MODULE_VERSION}"
DESCRIPTION "Qt Documentation and examples" # special case
HOMEPAGE_URL "https://qt.io/"
LANGUAGES CXX C
)
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core)
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG
OPTIONAL_COMPONENTS
Gui
Widgets
PrintSupport
Qml
Quick
Quick3D
Quick3DXr
Quick3DPhysics
Test
Sql
Network
QuickControls2
QmlXmlListModel
Graphs
WebSockets
Positioning
Location
Svg
Sensors
Multimedia
Charts
Pdf
PdfWidgets
ExamplesAssetDownloaderPrivate
)
qt_internal_project_setup()
qt_build_repo_begin()
qt_build_repo_impl_find_package_tests()
if(NOT QT_BUILD_STANDALONE_TESTS)
add_subdirectory(doc)
add_subdirectory(doc/src/cmake)
add_subdirectory(doc/src/platformintegration)
add_dependencies(QtDoc qtcmake)
add_dependencies(QtDoc qtplatformintegration)
# Dummy file that needs to be installed, to circumvent Coin skipping builds of standalone
# tests due to not having anything to upload as an artifact.
qt_configure_file(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/qtdoc_dummy_file.txt" CONTENT " ")
qt_install(FILES "${CMAKE_CURRENT_BINARY_DIR}/qtdoc_dummy_file.txt" DESTINATION "${INSTALL_MKSPECSDIR}")
endif()
qt_build_repo_post_process()
qt_build_repo_impl_tests()
qt_build_repo_end()
qt_build_repo_impl_examples()