Commit ed7e7b78 authored by Adam Procter's avatar Adam Procter

Add Doxygen support

* Adds a "make doc" command, outputting documentation in
  $BUILD_DIR/doc
parent 4528f86d
......@@ -59,3 +59,5 @@ add_subdirectory(src)
add_subdirectory(test)
add_subdirectory(doc)
find_package(Doxygen)
if (DOXYGEN_FOUND)
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in)
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile)
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY)
add_custom_target( doc ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating documentation with Doxygen"
VERBATIM )
else (DOXYGEN_FOUND)
message("Doxygen not found, cannot build documentation")
endif (DOXYGEN_FOUND)
PROJECT_NAME = "ngraph++"
PROJECT_BRIEF = "Nervana graph compiler"
OUTPUT_DIRECTORY = @CMAKE_CURRENT_BINARY_DIR@
INPUT = @CMAKE_CURRENT_SOURCE_DIR@/../src
RECURSIVE = YES
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment