Added coverage source.

This commit is contained in:
jgoppert
2015-11-04 03:11:45 -05:00
parent 9b90f223a4
commit ea66d09a8e
2 changed files with 14 additions and 3 deletions
+1 -3
View File
@@ -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.
+13
View File
@@ -0,0 +1,13 @@
// dummy code to instantiate all templates for coverage
#include <Matrix.hpp>
#include <Vector.hpp>
#include <Vector3.hpp>
#include <Euler.hpp>
#include <Scalar.hpp>
#include <Quaternion.hpp>
template Vector<float, 2>;
template Euler<float>;
template Scalar<float>;
template Matrix<float, 3, 3>;