-
Notifications
You must be signed in to change notification settings - Fork 0
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
Benedikt Moritz Maurer
committed
Oct 1, 2024
1 parent
ddb29e0
commit 5878c38
Showing
2 changed files
with
2,676 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Find Doxygen package | ||
find_package(Doxygen REQUIRED) | ||
|
||
# Set Doxygen input and output paths | ||
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile) | ||
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/DoxygenDocs) | ||
|
||
# Create a custom command to run Doxygen | ||
add_custom_command( | ||
OUTPUT ${DOXYGEN_OUT} | ||
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_IN} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
COMMENT "Generating API documentation with Doxygen" | ||
VERBATIM | ||
) | ||
|
||
# Create a custom target for the documentation | ||
add_custom_target(doc ALL DEPENDS ${DOXYGEN_OUT}) |
Oops, something went wrong.