Skip to content

Commit

Permalink
Doxygen can be run to create documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanki0396 committed Jul 26, 2024
1 parent 950ec68 commit 15867a6
Show file tree
Hide file tree
Showing 3 changed files with 3,077 additions and 0 deletions.
22 changes: 22 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,25 @@ install(
FILES "${PROJECT_BINARY_DIR}/lib${PROJECT_NAME}_rdict.pcm"
DESTINATION "${INSTALL_LIB_DIR}"
COMPONENT dev)

# Generate documentation

find_package(Doxygen)
if(DOXYGEN_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doc/DoxygenLayout.xml
${CMAKE_CURRENT_BINARY_DIR}/DoxygenLayout.xml COPYONLY)
add_custom_target(
doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen"
VERBATIM)

install(
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doxygen
DESTINATION ${CMAKE_INSTALL_DOCDIR}/doxygen
OPTIONAL)

endif()
Loading

0 comments on commit 15867a6

Please sign in to comment.