From c709b8bab5d71aa72ba17c1b0200d1724bfb867b Mon Sep 17 00:00:00 2001 From: Emily Bache Date: Tue, 4 Feb 2020 14:42:29 +0100 Subject: [PATCH] added comments for how to add coverage --- cpp/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 029c8cd3..26325069 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -28,6 +28,9 @@ endif() # Bring the populated content into the build add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR}) +# uncomment this line to enable coverage measurements using gcov +# set(CMAKE_CXX_FLAGS "--coverage") + enable_testing() add_subdirectory(src) add_subdirectory(lib)