##// END OF EJS Templates
Few cosmetic changes and lowered optim to -O2...
Few cosmetic changes and lowered optim to -O2 - Raised CMake minimum version to 3.6 everywhere - Add option to either explictly call gcov_exit or register it on exit - Raised FSW patch level to 22

File last commit:

r400:9d5e16586c2c 3.2.0.22 R3++
r400:9d5e16586c2c 3.2.0.22 R3++
Show More
CMakeLists.txt
20 lines | 616 B | text/plain | CMakeLexer
Added gcov support...
r387 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
)
Few cosmetic changes and lowered optim to -O2...
r400 if(Coverage)
# add_definitions(-DGCOV_USE_EXIT)
add_definitions(-DGCOV_ENABLED)
endif()
Added gcov support...
r387 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
)