v5.7.0 plugin system: compile-time import
with v5.7.0 we cannot link a plugin anymore because it use the MODULE_LIBRARY type:
paraview_plugin_build(PLUGINS ${plugins})
add_executable(plugin_load main.cxx)
target_link_libraries (plugin_load PRIVATE ParaView::pqApplicationComponents)
target_link_libraries (plugin_load PRIVATE CellDerivatives)
So I tried to use the TARGET property, but without luck:
paraview_plugin_build(
PLUGINS ${plugins}
TARGET CellDerivatives_interface)
add_executable(plugin_load main.cxx)
target_link_libraries (plugin_load PRIVATE ParaView::pqApplicationComponents)
target_link_libraries (plugin_load PRIVATE CellDerivatives_interface)
It configures but it seems to have no effect:
main.cxx:(.text+0x5): undefined reference to `pv_plugin_instance_CellDerivatives'
Is it a bug ?
The example is still taken from the doc, and available at https://github.com/jschueller/paraview-plugin-example