mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 04:28:49 +03:00
Add build target for doxygen
Includes documentation & dependency/call graphs
This commit is contained in:
parent
4073d61045
commit
a8e82ba284
2 changed files with 2330 additions and 0 deletions
|
@ -38,6 +38,26 @@ if(NOT MSVC AND NOT APPLE)
|
|||
find_package(Threads REQUIRED)
|
||||
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
|
||||
#
|
||||
|
|
2310
cmake/Doxyfile.in
Normal file
2310
cmake/Doxyfile.in
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue