[TESTS][CMAKE] added the eigen library to the tests CmakeLists

This commit is contained in:
kallore 2025-05-20 11:47:24 +02:00
parent 8aea305ad3
commit 9fc9b94be7

View file

@ -9,10 +9,11 @@ rotgen_setup_test_targets()
##======================================================================================================================
## Compiler options for Unit Tests
##======================================================================================================================
find_package (Eigen3 3.4 REQUIRED NO_MODULE)
add_library(rotgen_test INTERFACE)
target_compile_options(rotgen_test INTERFACE -std=c++20 -Werror -Wall -Wextra -Wshadow -Wunused-variable)
target_include_directories( rotgen_test INTERFACE ${PROJECT_SOURCE_DIR}/test)
target_link_libraries(rotgen_test INTERFACE rotgen)
target_link_libraries(rotgen_test INTERFACE rotgen Eigen3::Eigen)
##======================================================================================================================
## Unit Tests registration