From ea66d09a8e07d30542bb93d5277f1c87ac3184a3 Mon Sep 17 00:00:00 2001 From: jgoppert Date: Wed, 4 Nov 2015 03:11:45 -0500 Subject: [PATCH] Added coverage source. --- CMakeLists.txt | 4 +--- test/coverage.cpp | 13 +++++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 test/coverage.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index eabcb7919f..ad7d15b9a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,8 +23,6 @@ if (NOT CMAKE_BUILD_TYPE) message(STATUS "set build type to ${CMAKE_BUILD_TYPE}") endif() -option(COVERAGE "enable coverage" ON) - list(APPEND CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -Wall @@ -38,7 +36,7 @@ enable_testing() include_directories(matrix) -file(GLOB_RECURSE COV_SRCS matrix/*.h*) +file(GLOB_RECURSE COV_SRCS matrix/*.hpp test/*.cpp) # Setup the coveralls target and tell it to gather # coverage data for all the lib sources. diff --git a/test/coverage.cpp b/test/coverage.cpp new file mode 100644 index 0000000000..8a39945119 --- /dev/null +++ b/test/coverage.cpp @@ -0,0 +1,13 @@ +// dummy code to instantiate all templates for coverage + +#include +#include +#include +#include +#include +#include + +template Vector; +template Euler; +template Scalar; +template Matrix;