Commit 45e7e66f authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel
Browse files

vtkParallelCore: update to the new module system

parent 8f9479a5
set(Module_SRCS
vtkCommunicator.cxx
vtkDummyCommunicator.cxx
vtkDummyController.cxx
vtkMultiProcessController.cxx
vtkMultiProcessStream.cxx
vtkPDirectory.cxx
vtkProcess.cxx
vtkProcessGroup.cxx
vtkPSystemTools.cxx
vtkSocketCommunicator.cxx
vtkSocketController.cxx
vtkSubCommunicator.cxx
vtkSubGroup.cxx
vtkFieldDataSerializer.cxx
)
set(classes
vtkCommunicator
vtkDummyCommunicator
vtkDummyController
vtkFieldDataSerializer
vtkMultiProcessController
vtkMultiProcessStream
vtkPDirectory
vtkProcess
vtkProcessGroup
vtkPSystemTools
vtkSocketCommunicator
vtkSocketController
vtkSubCommunicator
vtkSubGroup)
# Generate "vtkSocketCommunicatorHash.h".
include(vtkHashSource)
# Generate "vtkSocketCommunicatorHash.h".
vtk_hash_source(
INPUT "vtkSocketCommunicator.cxx"
NAME "vtkSocketCommunicatorHash"
HEADER_OUTPUT hash_header)
list(APPEND Module_SRCS ${hash_header})
vtk_module_library(vtkParallelCore ${Module_SRCS})
vtk_module_add_module(VTK::ParallelCore
CLASSES ${classes}
PRIVATE_HEADERS ${hash_header})
vtk_module_test_data(
Data/RectGrid2.vtk
Data/blow.vtk
Data/combq.bin
Data/combxyz.bin
Data/earth.ppm
Data/teapot.g
)
add_subdirectory(Cxx)
if (VTK_WRAP_PYTHON)
......
......@@ -10,14 +10,14 @@ if (PYTHON_EXECUTABLE)
add_test(NAME vtkParallelCore-TestSocketCommunicator
COMMAND ${PYTHON_EXECUTABLE}
${VTK_CMAKE_DIR}/vtkTestDriver.py
${VTK_SOURCE_DIR}/CMake/vtkTestDriver.py
# indicate that the processes are not run sequentially,
--process
$<TARGET_FILE:vtkParallelCore-TestSocketCommunicator>
-T ${VTK_TEST_OUTPUT_DIR}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
--server
--process
$<TARGET_FILE:vtkParallelCore-TestSocketCommunicator>
-T ${VTK_TEST_OUTPUT_DIR}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
)
endif()
vtk_module(vtkParallelCore
GROUPS
StandAlone
TEST_DEPENDS
vtkTestingRendering
vtkRenderingOpenGL2
KIT
vtkParallel
DEPENDS
vtkCommonCore
PRIVATE_DEPENDS
vtkCommonDataModel
vtkCommonSystem
vtkIOLegacy
vtksys
)
NAME
VTK::ParallelCore
LIBRARY_NAME
vtkParallelCore
KIT
VTK::Parallel
GROUPS
StandAlone
DEPENDS
VTK::CommonCore
PRIVATE_DEPENDS
VTK::CommonDataModel
VTK::CommonSystem
VTK::IOLegacy
VTK::vtksys
TEST_DEPENDS
VTK::CommonSystem
VTK::RenderingOpenGL2
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