Initial base for codecov

This commit is contained in:
Alejandro Saucedo 2021-02-13 08:06:21 +00:00
parent e1f7575be2
commit 099b342ee1
3 changed files with 17 additions and 2 deletions

View file

@ -21,6 +21,8 @@ set(DOXYFILE_IN
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in)
set(DOXYFILE_OUT
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
set(CODECOV_INDEX_FILE
${DOXYGEN_OUTPUT_DIR/html/codecov/index.html})
# Perform replacement with cmake vars inside Doxifine.in
configure_file(${DOXYFILE_IN} ${DOXYFILE_OUT} @ONLY)
@ -33,8 +35,13 @@ add_custom_command(
COMMENT "Generating docs"
)
add_custom_target(gendoxygen ALL
DEPENDS ${DOXYGEN_INDEX_FILE})
if(KP_OPT_DOCS_GEN_CODECOV)
add_custom_target(gendoxygen ALL
DEPENDS ${DOXYGEN_INDEX_FILE} ${DOXYGEN_OUTPUT_DIR})
else()
add_custom_target(gendoxygen ALL
DEPENDS ${DOXYGEN_INDEX_FILE})
endif()
#####################################################