function(enable_coverage TARGET) target_compile_options("${TARGET}" PUBLIC "$<$:-fcondition-coverage>" "$<$:--coverage>" ) target_link_options("${TARGET}" PUBLIC "$<$:--coverage>" ) endfunction()