paraview superbuild issue - attribute cannot be used here: vtk::filepath

Making a library static is straightforward. For example,

vtk_module_add_module("${ns}::WrappingTools"
  SOURCES ${sources}
  HEADERS ${headers}
  FORCE_STATIC)

You might also have to change the module header file so that VTKWRAPPINGTOOLS_EXPORT always has an empty definition.

As for why wrapping tools are available, let’s say you wanted to build Paraview against an external VTK. Obviously Paraview would need VTK’s wrapping tools to wrap its own classes. And Paraview even has its own wrapping tool (vtkWrapClientServer) that links to libvtkWrappingTools.

The parser has grown organically over the past 25 years, its code has become quite a jungle. If you know anyone who wants to do their own wrapping of VTK’s API, I have some example code: GitHub - dgobbi/WrapVTK: VTK external wrapper framework

2 Likes