Commit cc68472f authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtkIOParallelXdmf3: update to the new module system

parent c1adeae8
include(vtkObjectFactory)
set(classes
vtkPXdmf3Writer)
mark_as_advanced(CLEAR Boost_INCLUDE_DIR)
find_package(Boost REQUIRED)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
mark_as_advanced(FORCE Boost_INCLUDE_DIR)
endif(Boost_FOUND)
set(Module_SRCS
vtkPXdmf3Writer.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
# Now to generate our object factory.
vtk_add_override(vtkXdmf3Writer vtkPXdmf3Writer)
vtk_object_factory_configure("${vtk_module_overrides}")
vtk_module_library(vtkIOParallelXdmf3 ${Module_SRCS})
vtk_module_add_module(VTK::IOParallelXdmf3
CLASSES ${classes}
SOURCES ${vtk_object_factory_source}
PRIVATE_HEADERS ${vtk_object_factory_header})
add_subdirectory(Cxx)
if (VTK_USE_LARGE_DATA)
vtk_module_test_data(
Data/XDMF/Iron/,REGEX:Iron_Protein\.ImageData\..*)
add_subdirectory(Cxx)
endif ()
if(VTK_MPI_MAX_NUMPROCS GREATER 1 AND VTK_USE_LARGE_DATA)
set(vtkIOParallelXdmf3CxxTests-MPI_NUMPROCS 2)
vtk_add_test_cxx(vtkIOParallelXdmf3CxxTests tests
TestXdmf3Parallel.cxx,NO_VALID
)
include(vtkMPI)
set(Xdmf3MPITests TestXdmf3Parallel)
foreach(test ${Xdmf3MPITests})
vtk_module_test_executable(vtkIOParallelXdmf3Cxx-${test} ${test}.cxx)
ExternalData_Expand_Arguments(VTKData _
"DATA{${VTK_TEST_INPUT_DIR}/XDMF/Iron/,REGEX:.*}"
)
ExternalData_add_test(VTKData
NAME vtkIOParallelXdmf3Cxx-${test}
COMMAND ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS}
$<TARGET_FILE:vtkIOParallelXdmf3Cxx-${test}>
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
# -V DATA{../Data/Baseline/${test}.png,:}
${VTK_MPI_POSTFLAGS})
vtk_mpi_link(vtkIOParallelXdmf3Cxx-${test})
endforeach()
endif()
vtk_test_cxx_executable(vtkIOParallelXdmf3CxxTests tests)
......@@ -95,7 +95,7 @@ void MyProcess::Execute()
}
int main(int argc, char *argv[])
int TestXdmf3Parallel(int argc, char **argv)
{
// This is here to avoid false leak messages from vtkDebugLeaks when
// using mpich. It appears that the root process which spawns all the
......
vtk_module(vtkIOParallelXdmf3
IMPLEMENTS
vtkIOXdmf3
DEPENDS
vtkParallelCore
vtkCommonCore
vtkCommonDataModel
vtkCommonExecutionModel
vtkIOLegacy
vtkIOXdmf3
PRIVATE_DEPENDS
vtksys
vtkxdmf3
vtkFiltersExtraction
TEST_DEPENDS
vtkFiltersGeneral
vtkTestingCore
vtkTestingRendering
vtkParallelMPI
KIT
vtkParallel
)
NAME
VTK::IOParallelXdmf3
LIBRARY_NAME
vtkIOParallelXdmf3
KIT
VTK::Parallel
IMPLEMENTS
VTK::IOXdmf3
DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::CommonExecutionModel
VTK::IOLegacy
VTK::IOXdmf3
VTK::ParallelCore
PRIVATE_DEPENDS
VTK::FiltersExtraction
VTK::mpi
VTK::vtksys
VTK::xdmf3
TEST_DEPENDS
VTK::FiltersGeneral
VTK::ParallelMPI
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