diff --git a/cmake/FindLcov.cmake b/cmake/FindLcov.cmake index 244d1c2..19d24b0 100644 --- a/cmake/FindLcov.cmake +++ b/cmake/FindLcov.cmake @@ -293,7 +293,7 @@ function (lcov_capture_tgt TNAME) # Add target for generating html output for this target only. file(MAKE_DIRECTORY ${LCOV_HTML_PATH}/${TNAME}) add_custom_target(${TNAME}-genhtml - COMMAND ${GENHTML_BIN} --quiet --sort --prefix ${PROJECT_SOURCE_DIR} + COMMAND ${GENHTML_BIN} --quiet --sort --legend --prefix ${PROJECT_SOURCE_DIR} --baseline-file ${LCOV_DATA_PATH_INIT}/${TNAME}.info --output-directory ${LCOV_HTML_PATH}/${TNAME} --title "${CMAKE_PROJECT_NAME} - target ${TNAME}" @@ -326,7 +326,7 @@ function (lcov_capture) if (NOT TARGET lcov) file(MAKE_DIRECTORY ${LCOV_HTML_PATH}/all_targets) add_custom_target(lcov - COMMAND ${GENHTML_BIN} --quiet --sort + COMMAND ${GENHTML_BIN} --quiet --sort --legend --baseline-file ${LCOV_DATA_PATH_INIT}/all_targets.info --output-directory ${LCOV_HTML_PATH}/all_targets --title "${CMAKE_PROJECT_NAME}" --prefix "${PROJECT_SOURCE_DIR}" @@ -349,7 +349,7 @@ file(MAKE_DIRECTORY ${LCOV_HTML_PATH}/selected_targets) if (NOT TARGET lcov-genhtml) add_custom_target(lcov-genhtml COMMAND ${GENHTML_BIN} - --quiet + --quiet --legend --output-directory ${LCOV_HTML_PATH}/selected_targets --title \"${CMAKE_PROJECT_NAME} - targets `find ${LCOV_DATA_PATH_CAPTURE} -name \"*.info\" ! -name