CMake: Eigen include dirs from an external library [closed]
Hi all,
I've implemented a library which uses Eigen3. The following lines are part of the CMake of this library:
# EIGEN
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
And Eigen3 is found and my library compiles without any problem.
The complication appears when I use my library into a ROS node. This node has nothing to be with Eigen, it is not used there. However, if I don't include the Eigen include dirs in this project as well, its compilation fails.
My library is compiled as a dynamic one, and I guess some Eigen stuff is missing from it, and that's why the node needs Eigen include directories as well. Any idea about how to fix this?
Thank you.
PS: I'm in Ubuntu 13.04 and using QtCreator as IDE.