Lines Matching full:gcov
16 # Search for gcov binary.
22 # Gcov evaluation is dependend on the used compiler. Check gcov support for
23 # each compiler that is used. If gcov binary was already found for this
29 # Some distributions like OSX (homebrew) ship gcov with the compiler
30 # version appended as gcov-x. To find this binary we'll build the
35 find_program(GCOV_BIN NAMES gcov-${GCC_VERSION} gcov
47 # gcov tool.
69 # Fall back to gcov binary if llvm-cov was not found or is
72 find_program(GCOV_BIN gcov HINTS ${COMPILER_PATH})
79 "${LANG} gcov binary.")
82 message("-- Found gcov evaluation for "
94 # Add a new global target for all gcov targets. This target could be used to
95 # generate the gcov files for the whole project instead of calling <TARGET>-gcov
97 if (NOT TARGET gcov)
98 add_custom_target(gcov) target
99 endif (NOT TARGET gcov)
103 # This function will add gcov evaluation for target <TNAME>. Only sources of
105 # Gcov on any source file of <TNAME> once and store the gcov file in the same
112 # have to determine which gcov binary to use.
127 # If no gcov binary was found, coverage data can't be evaluated.
141 # call gcov
142 add_custom_command(OUTPUT ${TDIR}/${FILE}.gcov
148 list(APPEND BUFFER ${TDIR}/${FILE}.gcov)
152 # add target for gcov evaluation of <TNAME>
153 add_custom_target(${TNAME}-gcov DEPENDS ${BUFFER})
155 # add evaluation target to the global gcov target.
156 add_dependencies(gcov ${TNAME}-gcov)