CMakeList
SET(CMAKE_CXX_FLAGS_DEBUG "-g -O0 --coverage -fprofile-arcs -ftest-coverage ${CMAKE_CXX_FLAGS_DEBUG}")
after build, check
CMakeFiles/xxx.dir/*.gcno
run test
lcov -c -o test.info -d .
genhtml test.info -o result
python -m http.server 4000
CMakeList
SET(CMAKE_CXX_FLAGS_DEBUG "-g -O0 --coverage -fprofile-arcs -ftest-coverage ${CMAKE_CXX_FLAGS_DEBUG}")
after build, check
CMakeFiles/xxx.dir/*.gcno
run test
lcov -c -o test.info -d .
genhtml test.info -o result
python -m http.server 4000