forked from bitcoin/bitcoin
-
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.
- Loading branch information
Showing
4 changed files
with
37 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright (c) 2024-present The Bitcoin Core developers | ||
# Distributed under the MIT software license, see the accompanying | ||
# file COPYING or https://opensource.org/license/mit/. | ||
|
||
find_package(Doxygen COMPONENTS dot) | ||
|
||
if(DOXYGEN_FOUND) | ||
set(doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) | ||
configure_file(Doxyfile.in ${doxyfile}) | ||
|
||
# In CMake 3.27, The FindDoxygen module's doxygen_add_docs() | ||
# command gained a CONFIG_FILE option to specify a custom doxygen | ||
# configuration file. | ||
# TODO: Consider using it. | ||
set(stampfile ${CMAKE_CURRENT_BINARY_DIR}/.stamp) | ||
add_custom_command( | ||
OUTPUT ${stampfile} | ||
COMMAND Doxygen::doxygen ${doxyfile} | ||
COMMAND ${CMAKE_COMMAND} -E touch ${stampfile} | ||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} | ||
DEPENDS ${doxyfile} | ||
COMMENT "Generating developer documentation" | ||
VERBATIM | ||
) | ||
add_custom_target(docs | ||
DEPENDS ${stampfile} | ||
) | ||
else() | ||
add_custom_target(docs | ||
COMMAND ${CMAKE_COMMAND} -E echo "error: doxygen not found" | ||
) | ||
endif() |
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