ParaView 5.8.0 - fatal error: vtkDemandDrivenPipeline: No such file or directory

I am developing a plugin that uses vtkDemandDrivenPipeline and vtkStreamingDemandDrivenPipeline routines when loading the plugin in order to access and change the interface time steps, time range, etc. In ParaView 5.6.2 I had no issues, even the “#include vtkDemandDrivenPipeline” and “#include vtkStreamingDemandDrivenPipeline” statements were not required, ParaView was able to find them by itself when compiling the code.

Now with ParaView 5.8.0 and changes in the way the plugin code needs to be structured (specifying paraview.plugin file, multiple CMakeLists, specifying vtk.module file, etc.) I am getting errors

error: ‘vtkDemandDrivenPipeline’ has not been declared

And on manually including the file (“e.g. #include vtkDemandDrivenPipeline”) :

fatal error: vtkDemandDrivenPipeline: No such file or directory
159 | #include <vtkDemandDrivenPipeline>

How can I link those two files to my plugin in ParaView 5.8.0?

VTK’s headers end with .h, so you’ll need to include "vtkDemandDrivenPipeline.h". In addition, you need to link to the modules that you use (here, VTK::CommonExecutionModel).