-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use FindQtDocs module to locate tag files
Squashed commit of the following: commit 27641be Author: Paul Colby <[email protected]> Date: Wed Jan 24 22:32:15 2024 +1100 Remove unnecessary check `QtDocs_FOUND` must be true, because we specify `REQUIRED` in the `find_package()` call. commit a0b0655 Author: Paul Colby <[email protected]> Date: Wed Jan 24 21:55:10 2024 +1100 Treat Qt 5.10 and 5.11 differently They only have a single `qt` doc archive. commit 2363d48 Author: Paul Colby <[email protected]> Date: Wed Jan 24 21:38:27 2024 +1100 Use modern aqt version commit 35d3307 Author: Paul Colby <[email protected]> Date: Wed Jan 24 20:44:25 2024 +1100 Specify the correct QT_INSTALL_DOCS value Note, this is because `aqt install-doc` does not update the config used by `qmake` and/or `qtpaths` (which are installed via separate `aqt` comamnds). commit 75b6f77 Author: Paul Colby <[email protected]> Date: Wed Jan 24 20:19:54 2024 +1100 Install docs for the CodeQL build too commit caeaa31 Author: Paul Colby <[email protected]> Date: Tue Jan 23 22:38:52 2024 +1100 Distinguish archives and moduels for Qt docs commit c6ff58b Author: Paul Colby <[email protected]> Date: Tue Jan 23 22:29:47 2024 +1100 Also install docs for the sonar workflow commit 3941c28 Author: Paul Colby <[email protected]> Date: Tue Jan 23 22:25:36 2024 +1100 Specifiy modules to install docs for commit 830e70d Author: Paul Colby <[email protected]> Date: Tue Jan 23 22:15:56 2024 +1100 Install Qt docs commit 1e4e2bb Author: Paul Colby <[email protected]> Date: Tue Jan 23 21:40:20 2024 +1100 Enable debug logging for now commit 09c3999 Author: Paul Colby <[email protected]> Date: Mon Jan 22 22:24:49 2024 +1100 Switch to using my FindQtDocs cmake module commit 2a1473d Author: Paul Colby <[email protected]> Date: Sat Jan 20 10:53:46 2024 +1100 Detect the QT_INSTALL_DOCS path via qtpaths or qmake
- Loading branch information
Showing
5 changed files
with
38 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
# SPDX-FileCopyrightText: 2022-2024 Paul Colby <[email protected]> | ||
# SPDX-License-Identifier: LGPL-3.0-or-later | ||
|
||
# Include Qt doc tagfiles, if provided. | ||
if (QT_TAGFILES_PATH) | ||
set(QT_DOCS_BASEURL "https://doc.qt.io/qt-${QT_VERSION_MAJOR}/") | ||
message(STATUS "Using Qt doc tagfiles ${QT_TAGFILES_PATH} (${QT_DOCS_BASEURL})") | ||
set(DOX_TAGFILES "\\ | ||
\"${QT_TAGFILES_PATH}/qtcore/qtcore.tags=${QT_DOCS_BASEURL}\" \\ | ||
\"${QT_TAGFILES_PATH}/qtbluetooth/qtbluetooth.tags=${QT_DOCS_BASEURL}\" \\") | ||
endif() | ||
include(FetchContent) | ||
FetchContent_Declare(FindQtDocs GIT_REPOSITORY "https://github.com/pcolby/cmake-modules" GIT_TAG "v1") | ||
FetchContent_MakeAvailable(FindQtDocs) | ||
list(PREPEND CMAKE_MODULE_PATH "${findqtdocs_SOURCE_DIR}") | ||
find_package(QtDocs REQUIRED COMPONENTS Core Bluetooth) | ||
|
||
# Include Qt doc tagfiles, if available. | ||
set(QT_DOCS_BASEURL "https://doc.qt.io/qt-${QT_VERSION_MAJOR}/") | ||
message(STATUS "Using Qt doc tagfiles ${QT_INSTALL_DOCS} => ${QT_DOCS_BASEURL}") | ||
set(DOX_TAGFILES "\\ | ||
\"${QtDocs_Core_TAGS}=${QT_DOCS_BASEURL}\" \\ | ||
\"${QtDocs_Bluetooth_TAGS}=${QT_DOCS_BASEURL}\" \\") | ||
|
||
find_package(Doxygen) | ||
if (DOXYGEN_FOUND) | ||
|