External Plugin Builds in v5.7
While building an external plugin against a pre-built ParaView 5.7, CMake complains that it cannot find paraview_add_plugin.
It seems ${PARAVIEW_USE_FILE}
is no set by the config CMake file for ParaView, as of !2971 (merged). After reading through paraview-config.cmake.in, it is unclear what should be done in my CMake script to load the necessary CMake functions. I also could not find anything in the documentation.
I can make it work by adding include(${_ParaViewPlugin_cmake_dir}/ParaViewPlugin.cmake)
to my plugin's CMakeLists, but this seems a bit hackish as it is "private" variable. Even when I do this, it brings up other errors since _paraview_build_plugin
is not set. Additionally, there is lines like:
# TODO: Support external plugins?
in ParaViewPlugin.cmake, leading me to believe external plugin builds are no longer supported? Am I missing something here?