Commit 53c19568 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel
Browse files

vtkFiltersParallelGeometry: update to the new module system

parent 2c06b51d
include(vtkObjectFactory)
vtk_object_factory_declare(
BASE vtkConnectivityFilter
OVERRIDE vtkPConnectivityFilter)
vtk_object_factory_declare(
BASE vtkUnstructuredGridGhostCellsGenerator
OVERRIDE vtkPUnstructuredGridGhostCellsGenerator)
set(Module_SRCS
vtkPConnectivityFilter.cxx
vtkPDataSetGhostGenerator.cxx
vtkPStructuredGridConnectivity.cxx
vtkPStructuredGridGhostDataGenerator.cxx
vtkPUniformGridGhostDataGenerator.cxx
vtkPUnstructuredGridGhostCellsGenerator.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
vtk_object_factory_configure(
SOURCE_FILE vtk_object_factory_source
HEADER_FILE vtk_object_factory_header
EXPORT_MACRO "VTKFILTERSPARALLELGEOMETRY_EXPORT")
# Now to generate our object factory.
vtk_add_override(vtkUnstructuredGridGhostCellsGenerator vtkPUnstructuredGridGhostCellsGenerator)
vtk_add_override(vtkConnectivityFilter vtkPConnectivityFilter)
vtk_object_factory_configure("${vtk_module_overrides}")
set(classes
vtkPConnectivityFilter
vtkPDataSetGhostGenerator
vtkPStructuredGridConnectivity
vtkPStructuredGridGhostDataGenerator
vtkPUniformGridGhostDataGenerator
vtkPUnstructuredGridGhostCellsGenerator)
vtk_module_library(vtkFiltersParallelGeometry ${Module_SRCS})
vtk_module_add_module(VTK::FiltersParallelGeometry
CLASSES ${classes}
SOURCES ${vtk_object_factory_source}
PRIVATE_HEADERS ${vtk_object_factory_header})
include(vtkMPI)
set(vtkFiltersParallelGeometryCxxTests-MPI_NUMPROCS 4)
set(Tests_SRCS
TestPStructuredGridConnectivity.cxx
......@@ -25,5 +23,5 @@ set(all_tests
${data_tests_4_procs}
)
vtk_test_mpi_executable(vtkFiltersParallelGeometryCxxTests-MPI all_tests
vtk_test_cxx_executable(vtkFiltersParallelGeometryCxxTests-MPI all_tests
UnstructuredGhostZonesCommon.cxx)
vtk_module(vtkFiltersParallelGeometry
IMPLEMENTS
vtkFiltersParallel
GROUPS
MPI
TEST_DEPENDS
vtkFiltersParallelMPI
vtkIOXML
vtkIOParallel
vtkIOParallelXML
vtkCommonDataModel
vtkParallelMPI
vtkTestingCore
vtkImagingCore
KIT
vtkParallel
DEPENDS
vtkCommonCore
vtkCommonExecutionModel
vtkFiltersGeometry
vtkFiltersParallel
vtkParallelMPI
PRIVATE_DEPENDS
vtkCommonDataModel
vtkFiltersExtraction
vtkFiltersGeneral
vtkIOLegacy
vtkParallelCore
)
NAME
VTK::FiltersParallelGeometry
LIBRARY_NAME
vtkFiltersParallelGeometry
KIT
VTK::Parallel
GROUPS
MPI
IMPLEMENTS
VTK::FiltersCore
DEPENDS
VTK::CommonCore
VTK::CommonExecutionModel
VTK::FiltersGeometry
VTK::FiltersParallel
VTK::ParallelMPI
PRIVATE_DEPENDS
VTK::CommonDataModel
VTK::FiltersExtraction
VTK::FiltersGeneral
VTK::IOLegacy
VTK::ParallelCore
TEST_DEPENDS
VTK::CommonDataModel
VTK::CommonSystem
VTK::FiltersGeneral
VTK::FiltersParallelMPI
VTK::IOParallel
VTK::IOParallelXML
VTK::IOXML
VTK::ImagingCore
VTK::ParallelMPI
VTK::TestingCore
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