2022-07-05 12:25:19 +00:00
|
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
2022-08-22 08:37:40 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-07-05 12:25:19 +00:00
|
|
|
|
2020-04-30 14:13:46 +00:00
|
|
|
# Generated from qtdoc.pro.
|
|
|
|
|
2021-09-22 14:01:49 +00:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2020-04-30 14:13:46 +00:00
|
|
|
|
2020-09-25 12:36:34 +00:00
|
|
|
include(.cmake.conf)
|
|
|
|
project(QtDoc # special case
|
|
|
|
VERSION "${QT_REPO_MODULE_VERSION}"
|
2020-04-30 14:13:46 +00:00
|
|
|
DESCRIPTION "Qt Documentation and examples" # special case
|
|
|
|
HOMEPAGE_URL "https://qt.io/"
|
|
|
|
LANGUAGES CXX C
|
|
|
|
)
|
|
|
|
|
2023-06-07 13:46:54 +00:00
|
|
|
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core)
|
|
|
|
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG
|
|
|
|
OPTIONAL_COMPONENTS
|
|
|
|
Gui
|
|
|
|
Widgets
|
|
|
|
PrintSupport
|
|
|
|
Qml
|
|
|
|
Quick
|
2023-06-19 13:29:46 +00:00
|
|
|
Quick3D
|
|
|
|
Quick3DPhysics
|
2023-06-07 13:46:54 +00:00
|
|
|
Test
|
|
|
|
Sql
|
|
|
|
Network
|
|
|
|
QuickControls2
|
|
|
|
QmlXmlListModel
|
2023-12-05 11:39:31 +00:00
|
|
|
Graphs
|
2023-12-15 15:48:40 +00:00
|
|
|
WebSockets
|
|
|
|
Positioning
|
|
|
|
Location
|
2024-01-23 06:45:01 +00:00
|
|
|
Svg
|
|
|
|
Sensors
|
|
|
|
Multimedia
|
|
|
|
Charts
|
|
|
|
Pdf
|
|
|
|
PdfWidgets
|
2023-06-07 13:46:54 +00:00
|
|
|
)
|
2023-04-12 13:04:14 +00:00
|
|
|
qt_internal_project_setup()
|
2020-04-30 14:13:46 +00:00
|
|
|
|
|
|
|
# special case begin
|
|
|
|
qt_build_repo_begin()
|
2020-05-13 17:25:22 +00:00
|
|
|
|
|
|
|
if(NOT QT_BUILD_STANDALONE_TESTS)
|
|
|
|
add_subdirectory(doc)
|
2020-09-14 08:50:23 +00:00
|
|
|
add_subdirectory(doc/src/cmake)
|
2020-11-16 08:57:44 +00:00
|
|
|
add_subdirectory(doc/src/platformintegration)
|
2022-01-07 14:14:06 +00:00
|
|
|
add_dependencies(QtDoc qtcmake)
|
|
|
|
add_dependencies(QtDoc qtplatformintegration)
|
2020-05-13 17:25:22 +00:00
|
|
|
|
|
|
|
# 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()
|
|
|
|
|
2023-08-18 14:01:01 +00:00
|
|
|
qt_build_repo_post_process()
|
|
|
|
|
2020-11-20 19:25:28 +00:00
|
|
|
if(QT_BUILD_TESTS AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tests/CMakeLists.txt")
|
2020-05-13 17:25:22 +00:00
|
|
|
add_subdirectory(tests)
|
|
|
|
|
2020-11-18 14:56:54 +00:00
|
|
|
if(NOT QT_BUILD_TESTS_BY_DEFAULT)
|
2020-05-13 17:25:22 +00:00
|
|
|
set_property(DIRECTORY tests PROPERTY EXCLUDE_FROM_ALL TRUE)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2021-02-24 16:56:35 +00:00
|
|
|
if(QT_BUILD_EXAMPLES AND BUILD_SHARED_LIBS
|
2020-05-13 17:25:22 +00:00
|
|
|
AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/examples/CMakeLists.txt"
|
|
|
|
AND NOT QT_BUILD_STANDALONE_TESTS)
|
|
|
|
add_subdirectory(examples)
|
|
|
|
|
2020-11-18 14:56:54 +00:00
|
|
|
if(NOT QT_BUILD_EXAMPLES_BY_DEFAULT)
|
2020-05-13 17:25:22 +00:00
|
|
|
set_property(DIRECTORY examples PROPERTY EXCLUDE_FROM_ALL TRUE)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2020-04-30 14:13:46 +00:00
|
|
|
qt_build_repo_end()
|
|
|
|
# special case end
|