Commit f57d91d7 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel

vtkIOMPIImage: update to the new module system

parent 24e3eaa9
include(vtkMPI)
include(vtkObjectFactory)
set(Module_SRCS
vtkPNrrdReader.cxx
vtkMPIImageReader.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
set(classes
vtkPNrrdReader
vtkMPIImageReader)
# Now to generate our object factory.
vtk_add_override(vtkNrrdReader vtkPNrrdReader)
vtk_add_override(vtkMPIImageReader vtkImageReader)
vtk_object_factory_configure("${vtk_module_overrides}")
vtk_object_factory_declare(
BASE vtkNrrdReader
OVERRIDE vtkPNrrdReader)
vtk_object_factory_declare(
BASE vtkImageReader
OVERRIDE vtkMPIImageReader)
vtk_object_factory_configure(
SOURCE_FILE vtk_object_factory_source
HEADER_FILE vtk_object_factory_header
EXPORT_MACRO "VTKIOMPIIMAGE_EXPORT")
vtk_module_library(vtkIOMPIImage ${Module_SRCS})
vtk_mpi_link(${vtk-module})
vtk_module_add_module(VTK::IOMPIImage
CLASSES ${classes}
SOURCES ${vtk_object_factory_source}
PRIVATE_HEADERS ${vtk_object_factory_header})
vtk_module_test_data(
Data/headsq/,REGEX:.*)
add_subdirectory(Cxx)
include(vtkMPI)
vtk_add_test_mpi(vtkIOMPIImageCxxTests-MPI tests
TESTING_DATA
ParallelIso.cxx
ParallelIso2.cxx
)
vtk_test_mpi_executable(vtkIOMPIImageCxxTests-MPI tests)
vtk_test_cxx_executable(vtkIOMPIImageCxxTests-MPI tests)
......@@ -18,7 +18,7 @@
// All satellite processes send the result to the first process which
// collects and renders them.
#include <mpi.h>
#include <vtkMPI.h>
#include "vtkActor.h"
#include "vtkAppendPolyData.h"
......
......@@ -18,7 +18,7 @@
// All satellite processes send the result to the first process which
// collects and renders them.
#include <mpi.h>
#include <vtkMPI.h>
#include "vtkActor.h"
#include "vtkAppendPolyData.h"
......
vtk_module(vtkIOMPIImage
IMPLEMENTS
vtkIOImage
GROUPS
MPI
TEST_DEPENDS
vtkTestingCore
vtkTestingRendering
vtkInteractionStyle
vtkRenderingOpenGL2
KIT
vtkParallel
DEPENDS
vtkIOImage
PRIVATE_DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonTransforms
vtkParallelCore
vtkParallelMPI
vtksys
)
NAME
VTK::IOMPIImage
LIBRARY_NAME
vtkIOMPIImage
KIT
VTK::Parallel
GROUPS
MPI
IMPLEMENTS
VTK::IOImage
DEPENDS
VTK::IOImage
PRIVATE_DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::CommonTransforms
VTK::ParallelCore
VTK::ParallelMPI
VTK::mpi
VTK::vtksys
TEST_DEPENDS
VTK::FiltersSources
VTK::InteractionStyle
VTK::ParallelMPI
VTK::RenderingOpenGL2
VTK::TestingCore
VTK::TestingRendering
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