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

vtkIOXML: update to the new module system

parent f7a62bed
set(Module_SRCS
vtkRTXMLPolyDataReader.cxx
vtkXMLCompositeDataReader.cxx
vtkXMLCompositeDataWriter.cxx
vtkXMLDataReader.cxx
vtkXMLDataSetWriter.cxx
vtkXMLDataObjectWriter.cxx
vtkXMLFileReadTester.cxx
vtkXMLGenericDataObjectReader.cxx
vtkXMLHierarchicalBoxDataFileConverter.cxx
vtkXMLHierarchicalBoxDataReader.cxx
vtkXMLHierarchicalBoxDataWriter.cxx
vtkXMLHierarchicalDataReader.cxx
vtkXMLHyperTreeGridReader.cxx
vtkXMLHyperTreeGridWriter.cxx
vtkXMLImageDataReader.cxx
vtkXMLImageDataWriter.cxx
vtkXMLMultiBlockDataReader.cxx
vtkXMLMultiBlockDataWriter.cxx
vtkXMLMultiGroupDataReader.cxx
vtkXMLPDataReader.cxx
vtkXMLPDataObjectReader.cxx
vtkXMLPImageDataReader.cxx
vtkXMLPolyDataReader.cxx
vtkXMLPolyDataWriter.cxx
vtkXMLPPolyDataReader.cxx
vtkXMLPRectilinearGridReader.cxx
vtkXMLPStructuredDataReader.cxx
vtkXMLPStructuredGridReader.cxx
vtkXMLPTableReader.cxx
vtkXMLPUnstructuredDataReader.cxx
vtkXMLPUnstructuredGridReader.cxx
vtkXMLPartitionedDataSetReader.cxx
vtkXMLPartitionedDataSetWriter.cxx
vtkXMLPartitionedDataSetCollectionReader.cxx
vtkXMLPartitionedDataSetCollectionWriter.cxx
vtkXMLReader.cxx
vtkXMLRectilinearGridReader.cxx
vtkXMLRectilinearGridWriter.cxx
vtkXMLStructuredDataReader.cxx
vtkXMLStructuredDataWriter.cxx
vtkXMLStructuredGridReader.cxx
vtkXMLStructuredGridWriter.cxx
vtkXMLTableReader.cxx
vtkXMLTableWriter.cxx
vtkXMLUniformGridAMRReader.cxx
vtkXMLUniformGridAMRWriter.cxx
vtkXMLUnstructuredDataReader.cxx
vtkXMLUnstructuredDataWriter.cxx
vtkXMLUnstructuredGridReader.cxx
vtkXMLUnstructuredGridWriter.cxx
vtkXMLWriterC.cxx
vtkXMLWriter.cxx
)
set(classes
vtkRTXMLPolyDataReader
vtkXMLCompositeDataReader
vtkXMLCompositeDataWriter
vtkXMLDataObjectWriter
vtkXMLDataReader
vtkXMLDataSetWriter
vtkXMLFileReadTester
vtkXMLGenericDataObjectReader
vtkXMLHierarchicalBoxDataFileConverter
vtkXMLHierarchicalBoxDataReader
vtkXMLHierarchicalBoxDataWriter
vtkXMLHierarchicalDataReader
vtkXMLHyperTreeGridReader
vtkXMLHyperTreeGridWriter
vtkXMLImageDataReader
vtkXMLImageDataWriter
vtkXMLMultiBlockDataReader
vtkXMLMultiBlockDataWriter
vtkXMLMultiGroupDataReader
vtkXMLPDataObjectReader
vtkXMLPDataReader
vtkXMLPImageDataReader
vtkXMLPPolyDataReader
vtkXMLPRectilinearGridReader
vtkXMLPStructuredDataReader
vtkXMLPStructuredGridReader
vtkXMLPTableReader
vtkXMLPUnstructuredDataReader
vtkXMLPUnstructuredGridReader
vtkXMLPartitionedDataSetCollectionReader
vtkXMLPartitionedDataSetCollectionWriter
vtkXMLPartitionedDataSetReader
vtkXMLPartitionedDataSetWriter
vtkXMLPolyDataReader
vtkXMLPolyDataWriter
vtkXMLReader
vtkXMLRectilinearGridReader
vtkXMLRectilinearGridWriter
vtkXMLStructuredDataReader
vtkXMLStructuredDataWriter
vtkXMLStructuredGridReader
vtkXMLStructuredGridWriter
vtkXMLTableReader
vtkXMLTableWriter
vtkXMLUniformGridAMRReader
vtkXMLUniformGridAMRWriter
vtkXMLUnstructuredDataReader
vtkXMLUnstructuredDataWriter
vtkXMLUnstructuredGridReader
vtkXMLUnstructuredGridWriter
vtkXMLWriter
vtkXMLWriterC)
vtk_module_library(vtkIOXML ${Module_SRCS})
vtk_module_add_module(VTK::IOXML
CLASSES ${classes})
vtk_module_test_data(
Data/AMR/HierarchicalBoxDataset.v1.0.vthb
Data/AMR/HierarchicalBoxDataset.v1.0/,REGEX:.*
Data/AMR/HierarchicalBoxDataset.v1.1.vthb
Data/AMR/HierarchicalBoxDataset.v1.1/,REGEX:.*
Data/HyperTreeGrid.1.htg
Data/ghost_cells.vtu
Data/many_time_steps.vtu
Data/polyhedron2pieces.vtu)
add_subdirectory(Cxx)
if (VTK_WRAP_PYTHON)
vtk_module_test_data(
Data/RectGrid2.vtk
Data/blow.vtk
Data/combq.bin
Data/combxyz.bin
Data/fran_cut.vtk
Data/headsq/,REGEX:.*
Data/vehicle_data.csv)
add_subdirectory(Python)
endif ()
set(TestXML_ARGS "DATA{${VTK_TEST_INPUT_DIR}/sample.xml}")
set(TestXML_ARGS "DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/sample.xml}")
set(all_tests
TestAMRXMLIO.cxx,NO_VALID
TestDataObjectXMLIO.cxx,NO_VALID
......@@ -26,26 +26,26 @@ vtk_add_test_cxx(vtkIOXMLCxxTests tests
# Each of these most be added in a separate vtk_add_test_cxx
vtk_add_test_cxx(vtkIOXMLCxxTests tests
TestXMLCompositeDataReaderDistribution.cxx,NO_VALID,NO_OUTPUT
"DATA{${VTK_TEST_INPUT_DIR}/distTest.vtm,REGEX:distTest_[0-9]_0.vtp}"
"DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/distTest.vtm,REGEX:distTest_[0-9]_0.vtp}"
)
vtk_add_test_cxx(vtkIOXMLCxxTests tests
TestXMLReaderBadImageData,TestXMLReaderBadData.cxx,NO_VALID,NO_OUTPUT "DATA{${VTK_TEST_INPUT_DIR}/badImageData.xml}"
TestXMLReaderBadImageData,TestXMLReaderBadData.cxx,NO_VALID,NO_OUTPUT "DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/badImageData.xml}"
)
vtk_add_test_cxx(vtkIOXMLCxxTests tests
TestXMLReaderBadPolyData,TestXMLReaderBadData.cxx,NO_VALID,NO_OUTPUT "DATA{${VTK_TEST_INPUT_DIR}/badPolyData.xml}"
TestXMLReaderBadPolyData,TestXMLReaderBadData.cxx,NO_VALID,NO_OUTPUT "DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/badPolyData.xml}"
)
vtk_add_test_cxx(vtkIOXMLCxxTests tests
TestXMLReaderBadRectilinearGridData,TestXMLReaderBadData.cxx,NO_VALID,NO_OUTPUT "DATA{${VTK_TEST_INPUT_DIR}/badRectilinearGridData.xml}"
TestXMLReaderBadRectilinearGridData,TestXMLReaderBadData.cxx,NO_VALID,NO_OUTPUT "DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/badRectilinearGridData.xml}"
)
vtk_add_test_cxx(vtkIOXMLCxxTests tests
TestXMLReaderBadUnstucturedGridData,TestXMLReaderBadData.cxx,NO_VALID,NO_OUTPUT "DATA{${VTK_TEST_INPUT_DIR}/badUnstructuredGridData.xml}"
TestXMLReaderBadUnstucturedGridData,TestXMLReaderBadData.cxx,NO_VALID,NO_OUTPUT "DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/badUnstructuredGridData.xml}"
)
vtk_add_test_cxx(vtkIOXMLCxxTests tests
TestXMLReaderBadUniformGridData,TestXMLReaderBadData.cxx,NO_VALID,NO_OUTPUT "DATA{${VTK_TEST_INPUT_DIR}/badUniformGridData.xml}"
TestXMLReaderBadUniformGridData,TestXMLReaderBadData.cxx,NO_VALID,NO_OUTPUT "DATA{${_vtk_build_TEST_INPUT_DATA_DIRECTORY}/Data/badUniformGridData.xml}"
)
vtk_test_cxx_executable(vtkIOXMLCxxTests tests)
add_executable(TestXMLCInterface MACOSX_BUNDLE TestXMLCInterface.c)
target_link_libraries(TestXMLCInterface LINK_PRIVATE vtkIOXML)
add_test(NAME TestXMLCInterface COMMAND TestXMLCInterface)
target_link_libraries(TestXMLCInterface PRIVATE VTK::IOXML)
add_test(NAME VTK::IOXML-TestXMLCInterface COMMAND TestXMLCInterface)
vtk_module(vtkIOXML
GROUPS
StandAlone
TEST_DEPENDS
vtkFiltersAMR
vtkFiltersCore
vtkFiltersHyperTree
vtkFiltersSources
vtkImagingSources
vtkInfovisCore
vtkIOLegacy
vtkRenderingOpenGL2
vtkTestingCore
vtkTestingRendering
vtkInteractionStyle
vtkIOParallelXML
KIT
vtkIO
DEPENDS
vtkCommonCore
vtkCommonExecutionModel
vtkIOXMLParser
PRIVATE_DEPENDS
vtkCommonDataModel
vtkCommonMisc
vtkCommonSystem
vtkIOCore
vtksys
)
NAME
VTK::IOXML
LIBRARY_NAME
vtkIOXML
KIT
VTK::IO
GROUPS
StandAlone
DEPENDS
VTK::CommonCore
VTK::CommonExecutionModel
VTK::IOXMLParser
PRIVATE_DEPENDS
VTK::CommonDataModel
VTK::CommonMisc
VTK::CommonSystem
VTK::IOCore
VTK::vtksys
TEST_DEPENDS
VTK::FiltersAMR
VTK::FiltersCore
VTK::FiltersGeometry
VTK::FiltersHyperTree
VTK::FiltersSources
VTK::IOLegacy
VTK::IOParallelXML
VTK::ImagingSources
VTK::InfovisCore
VTK::InteractionStyle
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