I hope I followed the right path: I forked paraview and created a branch there: https://gitlab.kitware.com/fabian.wein/para-view-cfs-reader-plugin/-/tree/add_CFSReader_plugin
There I added our plugin to Plugins. It is dirty work in progress and not cleaned yet.
I then create a superbuild with paraview_SOURCE_SELECTION=source and paraview_SOURCE_DIR set.
In principle I can build paraview and my plugin and it works! However I still struggle with hdf’s cpp. I could not figure out, how to trigger building hdf5 with cpp. Currently I configure it manually and additionally need to add the hdf5cpp lib manually.
E.g. find_package(HDF5 REQUIRED COMPONENTS C HL CXX)
only finds C and HL.
I did not succeed with Aaron’s suggestion in how to enable hdf5cpp in superbuild?
Adding hdf5cpp to my vtk.module
NAME
CFSReaderModules
LIBRARY_NAME
vtkCFSReader
DEPENDS
VTK::CommonCore
VTK::CommonExecutionModel
hdf5cpp
PRIVATE_DEPENDS
VTK::vtksys
VTK::hdf5
results in
-- HDF5 C compiler wrapper is unable to compile a minimal HDF5 program.
-- HDF5 CXX compiler wrapper is unable to compile a minimal HDF5 program.
-- Found HDF5: /opt/homebrew/Cellar/hdf5/1.12.1/lib/libhdf5.dylib;/Users/fwein/code/pv_10/sb_build_branch/install/lib/libhdf5.dylib;/Users/fwein/code/pv_10/sb_build_branch/install/lib/libhdf5_cpp.dylib;/Users/fwein/code/pv_10/sb_build_branch/install/lib/libhdf5.dylib (found version "1.12.1") found components: C HL CXX
CMake Error at CMake/ParaViewPlugin.cmake:1064 (message):
Failed to find the required module hdf5cpp.
Call Stack (most recent call first):
Plugins/CFSReader/CMakeLists.txt:71 (paraview_add_plugin))