#
# Build the documentation
#
include(UseDoxygen OPTIONAL)


#
# Build the documentation
#
find_package(Doxygen REQUIRED dot)

if (DOXYGEN_FOUND)
    doxygen_add_docs(docs
                     ${CMAKE_CURRENT_SOURCE_DIR})
endif(DOXYGEN_FOUND)

Use doxygen provided by cmake itself
cmake: Use doxygen provided by cmake itself
