From 752149b96a3b78937fee7d95ef119df8bb6b7c52 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 12 Aug 2013 12:01:00 -0500 Subject: in CMakeLists.txt, include the GCov rules before adding the src subdirectory. This unbreaks coverage report generation. --- CMakeLists.txt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f8a366b..69ac18e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,18 +49,20 @@ add_custom_target (cppcheck COMMAND cppcheck --enable=all -q --error-exitcode=2 include_directories (${CMAKE_CURRENT_SOURCE_DIR}/src) include_directories (${CMAKE_CURRENT_BINARY_DIR}/src) - -add_subdirectory (src) -add_subdirectory (data) -add_subdirectory (po) - +# testing & coverage if (${enable_tests}) set (GTEST_SOURCE_DIR /usr/src/gtest/src) set (GTEST_INCLUDE_DIR ${GTEST_SOURCE_DIR}/..) set (GTEST_LIBS -lpthread) enable_testing () if (${enable_lcov}) - include(cmake/GCov.cmake) + include(GCov) endif () - add_subdirectory(tests) +endif () + +add_subdirectory (src) +add_subdirectory (data) +add_subdirectory (po) +if (${enable_tests}) + add_subdirectory (tests) endif () -- cgit v1.2.3