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()