EVO-melroy-winegui/cmake/doxygen.cmake
2022-05-26 02:14:46 +02:00

9 lines
369 B
CMake

find_package(Doxygen REQUIRED)
set(DOXYGEN_CONFIG ${CMAKE_CURRENT_BINARY_DIR}/../doxygen.conf)
# note the option ALL which allows to build the docs together with the application
add_custom_target(Doxygen ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_CONFIG}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating documentation with Doxygen"
VERBATIM)