Commit 4a4ba571 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtkIONetCDF: update to the new module system

parent 43002081
set(Module_SRCS
vtkMPASReader.cxx
vtkNetCDFCAMReader.cxx
vtkNetCDFCFReader.cxx
vtkNetCDFPOPReader.cxx
vtkNetCDFReader.cxx
vtkSLACParticleReader.cxx
vtkSLACReader.cxx
)
set(classes
vtkMPASReader
vtkNetCDFCAMReader
vtkNetCDFCFReader
vtkNetCDFPOPReader
vtkNetCDFReader
vtkSLACParticleReader
vtkSLACReader)
vtk_module_library(vtkIONetCDF ${Module_SRCS})
vtk_module_add_module(VTK::IONetCDF
CLASSES ${classes})
add_subdirectory(Cxx)
if (VTK_USE_LARGE_DATA)
vtk_module_test_data(
Data/NetCDF/,REGEX:.*
Data/SLAC/ll-9cell-f523/ll-9cell-f523.ncdf
Data/SLAC/ll-9cell-f523/mode0.l0.R2.457036E+09I2.778314E+04.m3
Data/SLAC/pic-example/,REGEX:.*\.mod
Data/SLAC/pic-example/,REGEX:.*\.ncdf
Data/SLAC/pillbox/,REGEX:.*)
add_subdirectory(Cxx)
endif ()
if (VTK_WRAP_PYTHON)
vtk_module_test_data(
Data/sampleCurveGrid4.nc
Data/sampleGenGrid3.nc
Data/tos_O1_2001-2002.nc
)
add_subdirectory(Python)
endif ()
if(VTK_USE_LARGE_DATA)
# Tell ExternalData to fetch test input at build time.
ExternalData_Expand_Arguments(VTKData _
"DATA{${VTK_TEST_INPUT_DIR}/NetCDF/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/SLAC/ll-9cell-f523/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/SLAC/pic-example/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/SLAC/pillbox/,REGEX:.*}"
)
vtk_add_test_cxx(vtkIONetCDFCxxTests tests
SLACMultipleModes.cxx
SLACParticleReader.cxx
SLACReaderLinear.cxx
SLACReaderQuadratic.cxx
TestMPASReader.cxx
TestNetCDFCAMReader.cxx
TestNetCDFPOPReader.cxx
)
endif()
vtk_add_test_cxx(vtkIONetCDFCxxTests tests
SLACMultipleModes.cxx
SLACParticleReader.cxx
SLACReaderLinear.cxx
SLACReaderQuadratic.cxx
TestMPASReader.cxx
TestNetCDFCAMReader.cxx
TestNetCDFPOPReader.cxx
)
vtk_test_cxx_executable(vtkIONetCDFCxxTests tests)
vtk_module(vtkIONetCDF
GROUPS
StandAlone
TEST_DEPENDS
vtkCommonExecutionModel
vtkRenderingOpenGL2
vtkTestingRendering
vtkInteractionStyle
KIT
vtkIO
DEPENDS
vtkCommonCore
vtkCommonExecutionModel
PRIVATE_DEPENDS
vtkCommonDataModel
vtknetcdf
vtksys
)
NAME
VTK::IONetCDF
LIBRARY_NAME
vtkIONetCDF
KIT
VTK::IO
GROUPS
StandAlone
DEPENDS
VTK::CommonCore
VTK::CommonExecutionModel
PRIVATE_DEPENDS
VTK::CommonDataModel
VTK::netcdf
VTK::vtksys
TEST_DEPENDS
VTK::CommonExecutionModel
VTK::FiltersGeometry
VTK::InteractionStyle
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