1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
# This is the CMake file for building the docs directory of NCEPLIBS-ip.
#
# Ed Hartnett 10/22/20
if(ENABLE_DOCS)
# Create doxyfile.
set(abs_top_srcdir "${CMAKE_SOURCE_DIR}")
set(abs_top_builddir "${CMAKE_BINARY_DIR}")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
# Build documentation with target all.
add_custom_target(doc ALL
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API Documentation with Doxygen" VERBATIM)
endif(ENABLE_DOCS)
|