Skip to content

Commit 9174801

Browse files
committed
Add doxygen generation
Signed-off-by: Yan Burman <[email protected]>
1 parent 8d51b99 commit 9174801

File tree

3 files changed

+2447
-1
lines changed

3 files changed

+2447
-1
lines changed

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,14 @@ target_link_libraries(${target}
5050
libicli
5151
edit
5252
)
53+
54+
find_package(Doxygen)
55+
56+
if(DOXYGEN_FOUND)
57+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
58+
add_custom_target(doc
59+
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
60+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
61+
COMMENT "Generating API documentation with Doxygen" VERBATIM
62+
)
63+
endif(DOXYGEN_FOUND)

0 commit comments

Comments
 (0)