Impossible to build a plugin with documentation only
It's currently not possible to build a plugin that only embeds documentation. The following CMake snippet execute just fine but does not construct the doc directory.
paraview_add_plugin(DocumentationPlugin
FORCE_STATIC ON
VERSION "1.0"
DOCUMENTATION_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Ressources")
# This is necessary to generate the documentation: unexpected.
# SERVER_MANAGER_XML "${CMAKE_CURRENT_SOURCE_DIR}/Dummy.xml")
I've tracked this down to this line in the paraview_add_plugin
function https://gitlab.kitware.com/paraview/paraview/-/blob/master/CMake/ParaViewPlugin.cmake#L1131 but these xmls are needed for the paraview_client_documentation
and paraview_client_generate_help
functions below. I don't know if it is possible (and if it is, how) to avoid these constraints.
Attached an example of such a plugin : DocumentationPlugin.zip
Edited by Timothee Chabat