From 78468e38cd8d398f36213f8205b87ad41f798f74 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Tue, 14 May 2024 11:57:44 +0200 Subject: [PATCH] Renamed VectorAlgebra project to LinearAlgebra --- CMakeLists.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1591739..c0bcd5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ if(ESP_PLATFORM) INCLUDE_DIRS "." ) else() - project(VectorAlgebra) # Create project "simple_example" + project(LinearAlgebra) set(CMAKE_CXX_STANDARD 11) # Enable c++11 standard set(CMAKE_POSITION_INDEPENDENT_CODE ON) @@ -22,7 +22,7 @@ else() FetchContent_MakeAvailable(googletest) include_directories(.) - add_library(VectorAlgebra STATIC + add_library(LinearAlgebra STATIC "FloatSingle.cpp" "Angle.cpp" "Vector2.cpp" @@ -31,12 +31,14 @@ else() "Polar.cpp" "Spherical.cpp" "Matrix.cpp" + "Axis.cpp" + "AngleAxis.cpp" ) enable_testing() add_executable( - VectorAlgebraTest + LinearAlgebraTest "test/Angle_test.cc" "test/FloatSingle_test.cc" "test/Vector2_test.cc" @@ -48,19 +50,19 @@ else() "test/DiscreteAngle_test.cc" ) target_link_libraries( - VectorAlgebraTest + LinearAlgebraTest gtest_main - VectorAlgebra + LinearAlgebra ) if(MSVC) - target_compile_options(VectorAlgebraTest PRIVATE /W4 /WX) + target_compile_options(LinearAlgebraTest PRIVATE /W4 /WX) else() - target_compile_options(VectorAlgebraTest PRIVATE -Wall -Wextra -Wpedantic -Werror) + target_compile_options(LinearAlgebraTest PRIVATE -Wall -Wextra -Wpedantic -Werror) endif() include(GoogleTest) - gtest_discover_tests(VectorAlgebraTest) + gtest_discover_tests(LinearAlgebraTest) endif()