mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 07:37:36 +08:00
Added coverage source.
This commit is contained in:
+1
-3
@@ -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.
|
||||
|
||||
@@ -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>;
|
||||
Reference in New Issue
Block a user