Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

Commit 2185c65

Browse files
author
Dilawar Singh
committed
Added doxygen target.
1 parent 32c3fc7 commit 2185c65

File tree

5 files changed

+2354
-14
lines changed

5 files changed

+2354
-14
lines changed

CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,3 +517,17 @@ foreach(_py_script ${PY_SCRIPTS})
517517
add_dependencies(pylint ${TGT_NAME} )
518518
endforeach( )
519519

520+
######################## DOCS ###############################################
521+
find_package(Doxygen)
522+
if(DOXYGEN_FOUND)
523+
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/devel/Doxyfile.in)
524+
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
525+
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY)
526+
add_custom_target(doc
527+
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
528+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
529+
COMMENT "Generating API documentation using Doxygen."
530+
VERBATIM)
531+
else()
532+
message(STATUS "Doxygen needs to be installed to generate API docs")
533+
endif()

0 commit comments

Comments
 (0)