function (enable_coverage TARGET) target_compile_options("${TARGET}" PRIVATE "$<$,$>:-fcondition-coverage>" "$<$,$>:--coverage>" ) target_link_libraries("${TARGET}" PRIVATE "$<$,$>:gcov>" ) endfunction ()