- Correct log message for directory of generated doxygen doc - Correct path for image - Skip to build libraries if not requested
14 lines
436 B
CMake
14 lines
436 B
CMake
add_boolean_option(GENERATE_DOXYGEN False "Generate source code doc using doxygen")
|
|
|
|
if(GENERATE_DOXYGEN)
|
|
find_package(Doxygen REQUIRED)
|
|
|
|
configure_file(Doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
|
|
add_custom_target(doc
|
|
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
|
|
COMMENT "Generating API documentation with Doxygen" VERBATIM
|
|
)
|
|
else()
|
|
message(STATUS "No Doxygen documentation requested")
|
|
endif()
|