Commit 6d3b492f authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel

vtkRenderingParallel: update to the new module system

parent 58dc2ad1
......@@ -2,11 +2,11 @@ NAME
VTK::IOParallel
LIBRARY_NAME
vtkIOParallel
IMPLEMENTABLE
KIT
VTK::Parallel
GROUPS
StandAlone
IMPLEMENTABLE
DEPENDS
VTK::CommonCore
VTK::CommonDataModel
......
set(Module_SRCS
vtkClientServerCompositePass.cxx
vtkClientServerSynchronizedRenderers.cxx
vtkCompositedSynchronizedRenderers.cxx
vtkCompositer.cxx
vtkCompositeRenderManager.cxx
vtkCompositeRGBAPass.cxx
vtkCompositeZPass.cxx
vtkCompressCompositer.cxx
vtkParallelRenderManager.cxx
vtkPHardwareSelector.cxx
vtkSynchronizedRenderers.cxx
vtkSynchronizedRenderWindows.cxx
vtkTreeCompositer.cxx
vtkImageRenderManager.cxx
)
set(classes
vtkClientServerCompositePass
vtkClientServerSynchronizedRenderers
vtkCompositedSynchronizedRenderers
vtkCompositer
vtkCompositeRenderManager
vtkCompositeRGBAPass
vtkCompositeZPass
vtkCompressCompositer
vtkImageRenderManager
vtkParallelRenderManager
vtkPHardwareSelector
vtkSynchronizedRenderers
vtkSynchronizedRenderWindows
vtkTreeCompositer)
set(shader_files vtkCompositeZPassShader_fs.glsl vtkCompositeZPassFS.glsl)
set(shader_files
vtkCompositeZPassShader_fs.glsl
vtkCompositeZPassFS.glsl)
unset(shader_h_files)
foreach(file ${shader_files})
set(sources)
set(private_headers)
foreach (shader_file IN LISTS shader_files)
vtk_encode_string(
INPUT "${file}"
INPUT "${shader_file}"
EXPORT_SYMBOL "VTKRENDERINGPARALLEL_EXPORT"
EXPORT_HEADER "vtkRenderingParallelModule.h"
HEADER_OUTPUT header
SOURCE_OUTPUT source)
list(APPEND Module_SRCS ${source})
endforeach()
list(APPEND sources ${source})
list(APPEND private_headers ${header})
endforeach ()
add_definitions(-DVTK_OPENGL2)
vtk_module_add_module(VTK::RenderingParallel
CLASSES ${classes}
SOURCES ${sources}
PRIVATE_HEADERS ${private_headers})
vtk_module_library(vtkRenderingParallel ${Module_SRCS})
include(vtkOpenGL)
vtk_opengl_link(vtkRenderingParallel)
vtk_module_definitions(VTK::RenderingParallel
PRIVATE
VTK_OPENGL2)
include(vtkMPI)
vtk_add_test_cxx(vtkRenderingParallelCxxTests tests
PrmMagnify.cxx
)
......@@ -15,26 +13,26 @@ set(all_tests
${tests}
${no_data_tests}
)
vtk_test_mpi_executable(vtkRenderingParallelCxxTests-MPI all_tests)
vtk_test_cxx_executable(vtkRenderingParallelCxxTests-MPI all_tests)
if (PYTHON_EXECUTABLE)
vtk_module_test_executable(
vtkRenderingParallel-TestClientServerRendering TestClientServerRendering.cxx)
ExternalData_add_test(VTKData
ExternalData_add_test(${_vtk_build_TEST_DATA_TARGET}
NAME vtkRenderingParallel-TestClientServerRendering
COMMAND ${PYTHON_EXECUTABLE}
${VTK_CMAKE_DIR}/vtkTestDriver.py
${VTK_SOURCE_DIR}/CMake/vtkTestDriver.py
--process
$<TARGET_FILE:vtkRenderingParallel-TestClientServerRendering>
--port 12367
--server
-D ${VTK_TEST_DATA_DIR}
-D ${_vtk_build_TEST_DATA_DIRECTORY}
--process
$<TARGET_FILE:vtkRenderingParallel-TestClientServerRendering>
--port 12367
-D ${VTK_TEST_DATA_DIR}
-T ${VTK_TEST_OUTPUT_DIR}
-V "DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/TestClientServerRendering.png,:}"
-D ${_vtk_build_TEST_DATA_DIRECTORY}
-T ${_vtk_build_TEST_OUTPUT_DIRECTORY}
-V "DATA{../Data/Baseline/TestClientServerRendering.png,:}"
)
endif()
vtk_module(vtkRenderingParallel
TEST_DEPENDS
vtkParallelMPI
vtkFiltersParallelMPI
vtkTestingRendering
vtkImagingSources
vtkRenderingOpenGL2
vtkInteractionStyle
vtkTestingCore
KIT
vtkParallel
DEPENDS
vtkCommonCore
vtkRenderingOpenGL2
vtkRenderingCore
PRIVATE_DEPENDS
vtkglew
vtkCommonDataModel
vtkCommonMath
vtkCommonSystem
vtkFiltersParallel
vtkIOImage
vtkImagingCore
vtkParallelCore
)
NAME
VTK::RenderingParallel
LIBRARY_NAME
vtkRenderingParallel
KIT
VTK::Parallel
DEPENDS
VTK::CommonCore
VTK::RenderingCore
VTK::RenderingOpenGL2
PRIVATE_DEPENDS
VTK::CommonDataModel
VTK::CommonMath
VTK::CommonSystem
VTK::FiltersParallel
VTK::IOImage
VTK::ImagingCore
VTK::ParallelCore
VTK::glew
VTK::opengl
TEST_DEPENDS
VTK::FiltersGeometry
VTK::FiltersParallel
VTK::FiltersParallelMPI
VTK::FiltersSources
VTK::IOImage
VTK::IOImport
VTK::IOLegacy
VTK::ImagingSources
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