chore: update documentation build script

This commit is contained in:
yyc12345 2024-07-08 08:54:49 +08:00
parent d27a66e770
commit 11b2185bb4
2 changed files with 14 additions and 2 deletions

View File

@ -4,3 +4,15 @@ configure_file(
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
@ONLY @ONLY
) )
# 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
)

View File

@ -36,8 +36,8 @@ CD ..
:: Build for documentation :: Build for documentation
CD documentation CD documentation
cmake -DYYCC_BUILD_DOC=ON ../.. cmake -DYYCC_BUILD_DOC=ON ../..
cmake --build . --config Release cmake --build . --target YYCCDocumentation
:: cmake --install . --prefix=../install --config Release cmake --install . --prefix=../install
CD .. CD ..
ECHO DONE ECHO DONE