Co-authored-by: Jorge Chavez-Saab <jorgechavezsaab@gmail.com> Co-authored-by: Maria Corte-Real Santos <36373796+mariascrs@users.noreply.github.com> Co-authored-by: Luca De Feo <github@defeo.lu> Co-authored-by: Jonathan Komada Eriksen <jonathan.eriksen97@gmail.com> Co-authored-by: Basil Hess <bhe@zurich.ibm.com> Co-authored-by: Antonin Leroux <18654258+tonioecto@users.noreply.github.com> Co-authored-by: Patrick Longa <plonga@microsoft.com> Co-authored-by: Lorenz Panny <lorenz@yx7.cc> Co-authored-by: Francisco Rodríguez-Henríquez <francisco.rodriguez@tii.ae> Co-authored-by: Sina Schaeffler <108983332+syndrakon@users.noreply.github.com> Co-authored-by: Benjamin Wesolowski <19474926+Calodeon@users.noreply.github.com>
18 lines
526 B
CMake
18 lines
526 B
CMake
# Find Doxygen
|
|
find_package(Doxygen)
|
|
|
|
# Check if Doxygen is found
|
|
if(DOXYGEN_FOUND)
|
|
# Set input and output directories
|
|
set(DOXYGEN_CONF ${PROJECT_SOURCE_DIR}/Doxyfile)
|
|
|
|
# Add a target to generate Doxygen documentation using 'make doc'
|
|
add_custom_target(doc
|
|
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_CONF}
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
|
COMMENT "Generating API documentation with Doxygen"
|
|
VERBATIM )
|
|
else()
|
|
message(FATAL_ERROR "Doxygen not found - can't generate docs.")
|
|
endif(DOXYGEN_FOUND)
|