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

vtkIOGeometry: update to the new module system

parent e7cf8526
SET(Module_SRCS
vtkAVSucdReader.cxx
vtkBYUReader.cxx
vtkBYUWriter.cxx
#vtkCGMWriter.cxx # Needs vtkViewport.
vtkChacoReader.cxx
vtkFacetWriter.cxx
vtkFLUENTReader.cxx
vtkGAMBITReader.cxx
vtkGaussianCubeReader.cxx
vtkHoudiniPolyDataWriter.cxx
vtkIVWriter.cxx
vtkMCubesReader.cxx
vtkMCubesWriter.cxx
vtkMFIXReader.cxx
vtkMoleculeReaderBase.cxx
vtkOBJReader.cxx
vtkOBJWriter.cxx
vtkOpenFOAMReader.cxx
vtkParticleReader.cxx
vtkPDBReader.cxx
vtkProStarReader.cxx
vtkPTSReader.cxx
vtkSTLReader.cxx
vtkSTLWriter.cxx
vtkTecplotReader.cxx
vtkWindBladeReader.cxx
vtkXYZMolReader.cxx
)
set(classes
vtkAVSucdReader
vtkBYUReader
vtkBYUWriter
#vtkCGMWriter # Needs vtkViewport.
vtkChacoReader
vtkFacetWriter
vtkFLUENTReader
vtkGAMBITReader
vtkGaussianCubeReader
vtkHoudiniPolyDataWriter
vtkIVWriter
vtkMCubesReader
vtkMCubesWriter
vtkMFIXReader
vtkMoleculeReaderBase
vtkOBJReader
vtkOBJWriter
vtkOpenFOAMReader
vtkParticleReader
vtkPDBReader
vtkProStarReader
vtkPTSReader
vtkSTLReader
vtkSTLWriter
vtkTecplotReader
vtkWindBladeReader
vtkXYZMolReader)
vtk_module_library(vtkIOGeometry ${Module_SRCS})
vtk_module_add_module(VTK::IOGeometry
CLASSES ${classes})
vtk_module_test_data(
Data/42400-IDGH.stl
Data/AMR/Enzo/DD0010/,REGEX:.*
Data/IncOctPntLocData.dat
Data/IncOctPntLocResult.dat
Data/OpenFOAM/64BitFloats/,REGEX:.*
Data/OpenFOAM/64BitFloats/0/,REGEX:.*
Data/OpenFOAM/64BitFloats/constant/,REGEX:.*
Data/OpenFOAM/64BitFloats/constant/polyMesh/,REGEX:.*
Data/OpenFOAM/64BitFloats/system/,REGEX:.*
Data/OpenFOAM/cavity/,REGEX:.*
Data/OpenFOAM/cavity/0/,REGEX:.*
Data/OpenFOAM/cavity/0.5/,REGEX:.*
Data/OpenFOAM/cavity/0.5/uniform/,REGEX:.*
Data/OpenFOAM/cavity/1/,REGEX:.*
Data/OpenFOAM/cavity/1/uniform/,REGEX:.*
Data/OpenFOAM/cavity/1.5/,REGEX:.*
Data/OpenFOAM/cavity/1.5/uniform/,REGEX:.*
Data/OpenFOAM/cavity/2.5/,REGEX:.*
Data/OpenFOAM/cavity/2.5/uniform/,REGEX:.*
Data/OpenFOAM/cavity/2/,REGEX:.*
Data/OpenFOAM/cavity/2/uniform/,REGEX:.*
Data/OpenFOAM/cavity/constant/,REGEX:.*
Data/OpenFOAM/cavity/constant/polyMesh/,REGEX:.*
Data/OpenFOAM/cavity/system/,REGEX:.*
Data/OpenFOAM/regex/,REGEX:.*
Data/OpenFOAM/regex/0/,REGEX:.*
Data/OpenFOAM/regex/constant/,REGEX:.*
Data/OpenFOAM/regex/constant/polyMesh/,REGEX:.*
Data/OpenFOAM/regex/system/,REGEX:.*
Data/TecPlot/,REGEX:.*
Data/Viewpoint/cow.obj
Data/absolute_indices.obj
Data/cellcentered.tec
Data/cellsnd.ascii.inp
Data/cellsnd.bin.inp
Data/flow.tec
Data/flow.tec.gz
Data/obj_multitexture.obj
Data/obj_singletexture.obj
Data/obj_with_materials.obj
Data/obj_with_normals_and_tcoords.obj
Data/objGroup_1a.obj
Data/objGroup_1b.obj
Data/objGroup_2a.obj
Data/objGroup_2b.obj
Data/post.vtk
Data/prostar.cel
Data/prostar.vrt
Data/relative_indices.obj
Data/uGridEx.vtk)
set(enable_large_data_tests FALSE)
if (VTK_USE_LARGE_DATA)
if (DEFINED VTK_WORDS_BIGENDIAN AND NOT VTK_WORDS_BIGENDIAN)
vtk_module_test_data(
Data/MFIXReader/,REGEX:.*
Data/WindBladeReader/,REGEX:.*
Data/WindBladeReader/field/,REGEX:.*
Data/WindBladeReader/turbine/,REGEX:.*)
set(enable_large_data_tests TRUE)
endif ()
endif ()
add_subdirectory(Cxx)
if (VTK_WRAP_PYTHON)
vtk_module_test_data(
Data/Particles.raw
Data/PentaHexa.vtk
Data/bluntfinq.bin
Data/bluntfinxyz.bin
Data/brainImageSmooth.vtk
Data/caffeine.pdb
Data/caffeine_notrailingspaces.pdb
Data/motor.g
Data/multi-ascii.q
Data/multi-ascii.xyz
Data/multi-bin-2D.q
Data/multi-bin-2D.xyz
Data/multi-bin-C.q
Data/multi-bin-C.xyz
Data/multi-bin-oflow.q
Data/multi-bin.f
Data/multi-bin.q
Data/multi-bin.xyz
Data/multi.p3d
Data/points.txt
Data/prism.neu
Data/room.cas
Data/room.dat
Data/test.p3d
Data/texThres2.vtk
Data/thio3xx.xyz
Data/vwgt.coords
Data/vwgt.graph)
add_subdirectory(Python)
endif ()
# Tests with data
ExternalData_Expand_Arguments(VTKData _
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/0/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/0.5/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/0.5/uniform/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/1/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/1/uniform/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/1.5/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/1.5/uniform/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/2/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/2/uniform/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/2.5/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/2.5/uniform/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/constant/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/constant/polyMesh/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/cavity/system/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/64BitFloats/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/64BitFloats/0/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/64BitFloats/constant/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/64BitFloats/constant/polyMesh/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/64BitFloats/system/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/regex/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/regex/0/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/regex/constant/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/regex/constant/polyMesh/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/OpenFOAM/regex/system/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/TecPlot/,REGEX:.*}"
)
vtk_add_test_cxx(vtkIOGeometryCxxTests tests
TestDataObjectIO.cxx,NO_VALID
TestIncrementalOctreePointLocator.cxx,NO_VALID
......@@ -54,42 +25,28 @@ vtk_add_test_cxx(vtkIOGeometryCxxTests tests
)
vtk_add_test_cxx(vtkIOGeometryCxxTests tests
TestSTLReaderSinglePatch,TestSTLReader.cxx DATA{${VTK_TEST_INPUT_DIR}/42400-IDGH.stl}
TestSTLReaderSinglePatch,TestSTLReader.cxx DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/42400-IDGH.stl}
)
vtk_add_test_cxx(vtkIOGeometryCxxTests tests
TestSTLReaderMultiplePatches,TestSTLReader.cxx DATA{${VTK_TEST_INPUT_DIR}/multiple_patches.stl}
TestSTLReaderMultiplePatches,TestSTLReader.cxx DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/multiple_patches.stl}
)
vtk_add_test_cxx(vtkIOGeometryCxxTests tests
TestPTSReader,TestPTSReader.cxx DATA{${VTK_TEST_INPUT_DIR}/samplePTS.pts}
TestPTSReader,TestPTSReader.cxx DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/samplePTS.pts}
)
vtk_add_test_cxx(vtkIOGeometryCxxTests tests
TestAVSucdReaderContiguousASCII,TestAVSucdReader.cxx DATA{${VTK_TEST_INPUT_DIR}/cellsnd.ascii.inp}
TestAVSucdReaderContiguousASCII,TestAVSucdReader.cxx DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/cellsnd.ascii.inp}
)
vtk_add_test_cxx(vtkIOGeometryCxxTests tests
TestAVSucdReaderNonContiguousASCII,TestAVSucdReader.cxx DATA{${VTK_TEST_INPUT_DIR}/cellsnd.noncontiguous.ascii.inp}
TestAVSucdReaderNonContiguousASCII,TestAVSucdReader.cxx DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/cellsnd.noncontiguous.ascii.inp}
)
vtk_add_test_cxx(vtkIOGeometryCxxTests tests
TestAVSucdReaderBinary,TestAVSucdReader.cxx DATA{${VTK_TEST_INPUT_DIR}/cellsnd.bin.inp}
TestAVSucdReaderBinary,TestAVSucdReader.cxx DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/cellsnd.bin.inp}
)
set(_known_little_endian FALSE)
if (DEFINED VTK_WORDS_BIGENDIAN)
if (NOT VTK_WORDS_BIGENDIAN)
set(_known_little_endian TRUE)
endif()
endif()
if(VTK_USE_LARGE_DATA AND _known_little_endian)
# Tell ExternalData to fetch test input at build time.
ExternalData_Expand_Arguments(VTKData _
"DATA{${VTK_TEST_INPUT_DIR}/WindBladeReader/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/WindBladeReader/field/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/WindBladeReader/turbine/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/MFIXReader/,REGEX:.*}"
)
if(enable_large_data_tests)
vtk_add_test_cxx(vtkIOGeometryCxxTests large_data_tests
TestWindBladeReader.cxx
TestMFIXReader.cxx,NO_VALID
......
vtk_module(vtkIOGeometry
GROUPS
StandAlone
TEST_DEPENDS
vtkIOAMR
vtkIOLegacy
vtkFiltersGeometry
vtkRenderingOpenGL2
vtkTestingRendering
vtkInteractionStyle
KIT
vtkIO
DEPENDS
vtkCommonDataModel
vtkCommonExecutionModel
vtkIOCore
vtkIOLegacy
PRIVATE_DEPENDS
vtkCommonCore
vtkCommonMisc
vtkCommonSystem
vtkCommonTransforms
vtkIOImage
vtksys
vtkzlib
)
NAME
VTK::IOGeometry
LIBRARY_NAME
vtkIOGeometry
IMPLEMENTABLE
KIT
VTK::IO
GROUPS
StandAlone
DEPENDS
VTK::CommonDataModel
VTK::CommonExecutionModel
VTK::IOCore
VTK::IOLegacy
PRIVATE_DEPENDS
VTK::CommonCore
VTK::CommonMisc
VTK::CommonSystem
VTK::CommonTransforms
VTK::IOImage
VTK::vtksys
VTK::zlib
TEST_DEPENDS
VTK::CommonSystem
VTK::FiltersExtraction
VTK::FiltersGeneral
VTK::FiltersGeometry
VTK::FiltersSources
VTK::IOAMR
VTK::IOImage
VTK::IOLegacy
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