Add build target for doxygen

Includes documentation & dependency/call graphs
This commit is contained in:
Konstantinos Sideris 2018-07-02 18:39:49 +03:00
parent 4073d61045
commit a8e82ba284
2 changed files with 2330 additions and 0 deletions

View file

@ -38,6 +38,26 @@ if(NOT MSVC AND NOT APPLE)
find_package(Threads REQUIRED) find_package(Threads REQUIRED)
endif() endif()
if (BUILD_DOCS)
find_package(Doxygen)
if (DOXYGEN_FOUND)
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Doxyfile.in)
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT})
add_custom_target(docs ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen"
VERBATIM )
else (DOXYGEN_FOUND)
message("Doxygen need to be installed to generate the doxygen documentation")
endif (DOXYGEN_FOUND)
endif()
# #
# LMDB # LMDB
# #

2310
cmake/Doxyfile.in Normal file

File diff suppressed because it is too large Load diff