From 3ba71b73300fd9554334c173c342ccf44c28153f Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Tue, 12 Mar 2024 11:03:20 +0100 Subject: [PATCH] Fix tests for LinearAlgebra --- CMakeLists.txt | 20 ++++---------------- test/BB2B_Test.cc | 2 +- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07706d3..f4ab69e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,12 +2,12 @@ cmake_minimum_required(VERSION 3.13) # CMake version check if(ESP_PLATFORM) set(sourcedirs . - VectorAlgebra + LinearAlgebra ) set(includedirs . - VectorAlgebra + LinearAlgebra ) idf_component_register( @@ -18,7 +18,7 @@ if(ESP_PLATFORM) endif() project(RoboidControl) -add_subdirectory(VectorAlgebra) +add_subdirectory(LinearAlgebra) add_subdirectory(test) set(CMAKE_CXX_STANDARD 11) @@ -37,7 +37,7 @@ FetchContent_MakeAvailable(googletest) include_directories( . - VectorAlgebra + LinearAlgebra ) add_library(RoboidControl STATIC @@ -56,16 +56,4 @@ add_library(RoboidControl STATIC enable_testing() -# add_executable( -# RoboidControlTest -# "test/BB2B_Test.cc" -# ) -# target_link_libraries( -# RoboidControlTest -# gtest_main -# RoboidControl -# VectorAlgebra -# ) - include(GoogleTest) -# gtest_discover_tests(RoboidControlTest) diff --git a/test/BB2B_Test.cc b/test/BB2B_Test.cc index f609562..c09bc4c 100644 --- a/test/BB2B_Test.cc +++ b/test/BB2B_Test.cc @@ -6,8 +6,8 @@ #include "../DifferentialDrive.h" #include "../DistanceSensor.h" +#include "../LinearAlgebra/Angle.h" #include "../Roboid.h" -#include "../VectorAlgebra/Angle.h" /// @brief A Distance sensor with testing support /// With this sensor it is possible to simulate a measurement