2024-06-12 15:48:20 +08:00
|
|
|
# Configure Doxygen config file
|
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/Doxyfile.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
|
|
|
|
@ONLY
|
|
|
|
)
|
2024-07-08 08:54:49 +08:00
|
|
|
|
|
|
|
# Add custom target
|
|
|
|
add_custom_target (YYCCDocumentation
|
|
|
|
doxygen ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
COMMENT "Generating documentation" VERBATIM
|
|
|
|
)
|
|
|
|
|
|
|
|
# Install built documentation
|
|
|
|
install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
|
|
|
|
DESTINATION doc
|
|
|
|
)
|