Skip to content

Commit

Permalink
Add doxygen documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Moritz Maurer committed Oct 1, 2024
1 parent ddb29e0 commit 5878c38
Show file tree
Hide file tree
Showing 2 changed files with 2,676 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dev/cmake/ConfigDoxygen.cmake
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})
Loading

0 comments on commit 5878c38

Please sign in to comment.