Fix tests for LinearAlgebra
This commit is contained in:
parent
61b571c1a8
commit
3ba71b7330
@ -2,12 +2,12 @@ cmake_minimum_required(VERSION 3.13) # CMake version check
|
|||||||
if(ESP_PLATFORM)
|
if(ESP_PLATFORM)
|
||||||
set(sourcedirs
|
set(sourcedirs
|
||||||
.
|
.
|
||||||
VectorAlgebra
|
LinearAlgebra
|
||||||
)
|
)
|
||||||
|
|
||||||
set(includedirs
|
set(includedirs
|
||||||
.
|
.
|
||||||
VectorAlgebra
|
LinearAlgebra
|
||||||
)
|
)
|
||||||
|
|
||||||
idf_component_register(
|
idf_component_register(
|
||||||
@ -18,7 +18,7 @@ if(ESP_PLATFORM)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
project(RoboidControl)
|
project(RoboidControl)
|
||||||
add_subdirectory(VectorAlgebra)
|
add_subdirectory(LinearAlgebra)
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
@ -37,7 +37,7 @@ FetchContent_MakeAvailable(googletest)
|
|||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
.
|
.
|
||||||
VectorAlgebra
|
LinearAlgebra
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(RoboidControl STATIC
|
add_library(RoboidControl STATIC
|
||||||
@ -56,16 +56,4 @@ add_library(RoboidControl STATIC
|
|||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
# add_executable(
|
|
||||||
# RoboidControlTest
|
|
||||||
# "test/BB2B_Test.cc"
|
|
||||||
# )
|
|
||||||
# target_link_libraries(
|
|
||||||
# RoboidControlTest
|
|
||||||
# gtest_main
|
|
||||||
# RoboidControl
|
|
||||||
# VectorAlgebra
|
|
||||||
# )
|
|
||||||
|
|
||||||
include(GoogleTest)
|
include(GoogleTest)
|
||||||
# gtest_discover_tests(RoboidControlTest)
|
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
#include "../DifferentialDrive.h"
|
#include "../DifferentialDrive.h"
|
||||||
#include "../DistanceSensor.h"
|
#include "../DistanceSensor.h"
|
||||||
|
#include "../LinearAlgebra/Angle.h"
|
||||||
#include "../Roboid.h"
|
#include "../Roboid.h"
|
||||||
#include "../VectorAlgebra/Angle.h"
|
|
||||||
|
|
||||||
/// @brief A Distance sensor with testing support
|
/// @brief A Distance sensor with testing support
|
||||||
/// With this sensor it is possible to simulate a measurement
|
/// With this sensor it is possible to simulate a measurement
|
||||||
|
Loading…
x
Reference in New Issue
Block a user