gtest cannot find Eigen/Dense
I am having this bug when compiling gtest_motion_2d.cpp:
In file included from /home/jsola/dev/wolf/test/../src/ceres_wrapper/ceres_manager.h:5:0,
from /home/jsola/dev/wolf/test/gtest_motion_2d.cpp:15:
/usr/local/include/ceres/jet.h:165:22: fatal error: Eigen/Core: No such file or directory
#include "Eigen/Core"
I added eigen_include_dirs
and ceres_include_dirs
in the test/CMakeFiles
file, but no luck:
## Added these two include_dirs: ######################
#
# Include Eigen
INCLUDE_DIRECTORIES(${EIGEN_INCLUDE_DIRS})
#
# Include Ceres
IF(Ceres_FOUND)
INCLUDE_DIRECTORIES(${CERES_INCLUDE_DIRS})
ENDIF(Ceres_FOUND)
#
## but still gtest_motion_2d does not work ################
@artivis could you please have a look?