Reorganize CMake and minimize configuration for non-top-level builds.

This commit is contained in:
Antonio Sánchez
2024-05-01 17:42:53 +00:00
parent c1d637433e
commit 9700fc847a
4 changed files with 604 additions and 576 deletions

View File

@@ -91,6 +91,7 @@ macro(ei_add_test_internal testname testname_with_suffix)
if(EIGEN_TEST_CUSTOM_LINKER_FLAGS)
target_link_libraries(${targetname} ${EIGEN_TEST_CUSTOM_LINKER_FLAGS})
endif()
target_link_libraries(${targetname} Eigen3::Eigen)
if(${ARGC} GREATER 3)
set(libs_to_link ${ARGV3})