Commit 51dce8f8 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

ExplicitStructuredGrid: use plugin API for building modules

parent b771c88b
vtk_module_scan(
MODULE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/Filter/vtk.module"
REQUEST_MODULES ExplicitStructuredGrid::vtkExplicitStructuredGrid
PROVIDES_MODULES explicitstructuredgrid_modules
REQUIRES_MODULES required_modules
HIDE_MODULES_FROM_CACHE ON
)
if(required_modules)
foreach(module IN LISTS required_modules)
if(NOT TARGET "${module}")
message(FATAL_ERROR
"Failed to find the required module ${module}."
)
endif()
endforeach()
endif()
vtk_module_build(
MODULES ${explicitstructuredgrid_modules}
PACKAGE ExplicitStructuredGrid
INSTALL_HEADERS OFF
LIBRARY_NAME_SUFFIX "pv${PARAVIEW_VERSION_MAJOR}.${PARAVIEW_VERSION_MINOR}"
VERSION "${PARAVIEW_VERSION}"
SOVERSION "1"
)
set(SM_XML_FILES ExplicitStructuredGrid.xml)
if(PARAVIEW_ENABLE_PYTHON)
list(APPEND SM_XML_FILES ExplicitStructuredGridPythonExtractor.xml)
endif()
paraview_add_plugin(ExplicitStructuredGrid
REQUIRED_ON_SERVER
VERSION "1.0"
SERVER_MANAGER_XML ${SM_XML_FILES}
MODULES ExplicitStructuredGrid::vtkExplicitStructuredGrid
MODULE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/Filter/vtk.module"
)
if(BUILD_TESTING)
if (BUILD_TESTING)
add_subdirectory(Testing)
endif()
endif ()
set(classes
vtkExplicitStructuredGridGeneratorSource
)
vtkExplicitStructuredGridGeneratorSource)
set(server_manager_files
ExplicitStructuredGrid.xml)
if(PARAVIEW_ENABLE_PYTHON)
list(APPEND classes vtkExplicitStructuredGridPythonExtractor)
endif()
if (PARAVIEW_ENABLE_PYTHON)
list(APPEND classes
vtkExplicitStructuredGridPythonExtractor)
list(APPEND server_manager_files
ExplicitStructuredGridPythonExtractor.xml)
endif ()
vtk_module_add_module(ExplicitStructuredGrid::vtkExplicitStructuredGrid
CLASSES ${classes}
)
CLASSES ${classes})
paraview_add_server_manager_xmls(
XMLS ${server_manager_files})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment