The problem is in the Eigen library. You don't want to find_package( Eigen)
, instead just set EIGEN_INCLUDE_DIRS
to the path where you have unpacked Eigen. Also, remove Eigen libs from target_link_libraries
. Eigen is a header only library, including its headers is enough.
Update: Eigen also ships FindEigen3.cmake file in cmake subdirectory. You could copy this file to your sources and add path to is to CMAKE_MODULE_PATH