Renamed VectorAlgebra project to LinearAlgebra
This commit is contained in:
parent
47a63689ff
commit
78468e38cd
@ -5,7 +5,7 @@ if(ESP_PLATFORM)
|
|||||||
INCLUDE_DIRS "."
|
INCLUDE_DIRS "."
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
project(VectorAlgebra) # Create project "simple_example"
|
project(LinearAlgebra)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 11) # Enable c++11 standard
|
set(CMAKE_CXX_STANDARD 11) # Enable c++11 standard
|
||||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
@ -22,7 +22,7 @@ else()
|
|||||||
FetchContent_MakeAvailable(googletest)
|
FetchContent_MakeAvailable(googletest)
|
||||||
|
|
||||||
include_directories(.)
|
include_directories(.)
|
||||||
add_library(VectorAlgebra STATIC
|
add_library(LinearAlgebra STATIC
|
||||||
"FloatSingle.cpp"
|
"FloatSingle.cpp"
|
||||||
"Angle.cpp"
|
"Angle.cpp"
|
||||||
"Vector2.cpp"
|
"Vector2.cpp"
|
||||||
@ -31,12 +31,14 @@ else()
|
|||||||
"Polar.cpp"
|
"Polar.cpp"
|
||||||
"Spherical.cpp"
|
"Spherical.cpp"
|
||||||
"Matrix.cpp"
|
"Matrix.cpp"
|
||||||
|
"Axis.cpp"
|
||||||
|
"AngleAxis.cpp"
|
||||||
)
|
)
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
VectorAlgebraTest
|
LinearAlgebraTest
|
||||||
"test/Angle_test.cc"
|
"test/Angle_test.cc"
|
||||||
"test/FloatSingle_test.cc"
|
"test/FloatSingle_test.cc"
|
||||||
"test/Vector2_test.cc"
|
"test/Vector2_test.cc"
|
||||||
@ -48,19 +50,19 @@ else()
|
|||||||
"test/DiscreteAngle_test.cc"
|
"test/DiscreteAngle_test.cc"
|
||||||
)
|
)
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
VectorAlgebraTest
|
LinearAlgebraTest
|
||||||
gtest_main
|
gtest_main
|
||||||
VectorAlgebra
|
LinearAlgebra
|
||||||
)
|
)
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
target_compile_options(VectorAlgebraTest PRIVATE /W4 /WX)
|
target_compile_options(LinearAlgebraTest PRIVATE /W4 /WX)
|
||||||
else()
|
else()
|
||||||
target_compile_options(VectorAlgebraTest PRIVATE -Wall -Wextra -Wpedantic -Werror)
|
target_compile_options(LinearAlgebraTest PRIVATE -Wall -Wextra -Wpedantic -Werror)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
include(GoogleTest)
|
include(GoogleTest)
|
||||||
gtest_discover_tests(VectorAlgebraTest)
|
gtest_discover_tests(LinearAlgebraTest)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user