# Build Documentation | |
find_package(Doxygen QUIET) | |
if(NOT DOXYGEN_FOUND) | |
message(STATUS "Doxygen not found. Documentation will not be built.") | |
else() | |
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY) | |
add_custom_target(doc | |
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile | |
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | |
COMMENT "Generating documentation with Doxygen" VERBATIM) | |
endif() | |