I encounter an issue when trying to build a little bit of code. (I'm on linux)
To make it simple:
Here is what I've got in my Position.h file (at the really begining, I think the next isn't necessary to solve that issue):
#include <Eigen/Dense>
And Here is my CMakeLists.txt:
project(p)
include_directories("./Eigen")
add_executable(
p
Eigen/Dense
Position.h # wich requires Eigen/Dense
Position.cpp
#other files
)
In the project directory there is two directories: build and Eigen
To create the Makefile, I go in the build directory, then, type cmake ..
. A Makefile is created, but when I try to make
i got the error:
/path/to/Position.h:30:23: fatal error: Eigen/Dense: no such file or directory.
Position.h is from a code picked up from github (I can give you the link if wanted).
Please, can you give me a direction to search or maybe if you see what is wrong, what is my mistake
Thanks!