mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 06:13:33 +08:00
Made instantiation actual test program.
This commit is contained in:
+1
-5
@@ -1,8 +1,3 @@
|
||||
if (COVERALLS)
|
||||
add_library(coverage
|
||||
coverage.cpp)
|
||||
endif()
|
||||
|
||||
set(tests
|
||||
setIdentity
|
||||
inverse
|
||||
@@ -16,6 +11,7 @@ set(tests
|
||||
vector
|
||||
vector3
|
||||
euler
|
||||
instantiation
|
||||
)
|
||||
|
||||
foreach(test ${tests})
|
||||
|
||||
@@ -7,11 +7,17 @@
|
||||
#include <Scalar.hpp>
|
||||
#include <Quaternion.hpp>
|
||||
|
||||
namespace matrix {
|
||||
using namespace matrix;
|
||||
|
||||
template class Vector<float, 2>;
|
||||
template class Euler<float>;
|
||||
template class Scalar<float>;
|
||||
template class Matrix<float, 3, 3>;
|
||||
|
||||
int main() {
|
||||
Vector<float, 2> v;
|
||||
Euler<float> e;
|
||||
Scalar<float> s;
|
||||
Matrix<float, 3, 3> m;
|
||||
return 0;
|
||||
};
|
||||
Reference in New Issue
Block a user