Optional VTK module cannot be used in a ParaView plugin
Optional VTK module (vtkImagingStenctil, vtkRenderingQt, etc...) include directories are missing from
It is possible to add the include directories manually though.
How to reproduce :
- configure paraview master , activate
- build paraview
- download and unpack this simple plugin , that does an
- configure and build it
Scanning dependencies of target SMMyElevation [ 63%] Building CXX object CMakeFiles/SMMyElevation.dir/vtkMyElevationFilter.cxx.o /home/glow/work/sandbox/SimpleFilterPlugin/vtkMyElevationFilter.cxx:18:10: fatal error: vtkImageStencil.h: No such file or directory #include "vtkImageStencil.h" ^~~~~~~~~~~~~~~~~~~ compilation terminated.
Edit : Even if it have may worked before, I've found a reasonnable work around, and I do not think this need more fixing. it is fixed by using
find_package(ParaView REQUIRED COMPONENTS vtkImagingStencil)
in the plugin CMakeLists.txt