##// END OF EJS Templates
Added gcov support...
Added gcov support Imported sources from LESIA (thanks!) Added CMake option Coverage to enable code coverage on LFR and link with modified libgcov Added target to build html reports

File last commit:

r387:96eb9489ec21 No PWD scrub with...
r387:96eb9489ec21 No PWD scrub with...
Show More
CMakeLists.txt
17 lines | 522 B | text/plain | CMakeLexer
cmake_minimum_required(VERSION 3.6)
project(libgcov C)
include(sparc-rtems)
include(cppcheck)
set(LIB_GCOV_SOURCES
gcov-io.c
gcov-io.h
gcov-iov.h
libgcov.c
)
add_library(gcov STATIC ${LIB_GCOV_SOURCES})
add_custom_target(gcovr
COMMAND gcovr --exclude='.*gcov.*' --gcov-executable=${rtems_dir}/bin/sparc-rtems-gcov --object-directory ${CMAKE_BINARY_DIR} -r ${CMAKE_SOURCE_DIR} --html --html-details -o ${CMAKE_CURRENT_BINARY_DIR}/gcov.html && xdg-open ${CMAKE_CURRENT_BINARY_DIR}/gcov.html
)