Hi, I am facing an issue with the includes in my code.
In my CMakeLists.txt I first create a library, then an executable which include vtk headers.
If I remove the add_library (so far my executable does not depend on it), there is no issue, my executable is produced.
Otherwise, running make fails with first vtk header included “vtkActor.h” no such file… Weirdly, If i place my main.cpp aside my CMakeLists.txt no issue encountered.
So far, my fix has been to create the variable VTK_INCLUDE_DIRS and to get all vtk include directories.
Personally, I think it is a shame that the VTK_INCLUDE_DIRS is not filled automatically with the command find_package …
Your comments are most welcome !