1 if (XestiaCalendar_CODE_COVERAGE)
2 set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-g -O0 --coverage -fprofile-arcs -ftest-coverage")
3 set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-g -O0 --coverage -fprofile-arcs -ftest-coverage")
4 set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} "-coverage -lgcov")