cmake 使用eigen3.3
eigen3.3系不想eigen3.2系只需要include_dir 它在使用的时候是include_libary如所示: https://eigen.tuxfamily.org/dox/TopicCMakeGuide.html
find_package
(Eigen3
3.3 NO_MODULE
)
if (TARGET Eigen3
::Eigen
)
# Use the imported target
endif
(TARGET Eigen3
::Eigen
)
这就要求我们编译eigen3.3 见: https://stackoverflow.com/questions/48144415/not-found-eigen3-dir-when-configuring-a-cmake-project-in-windows