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

vtkIOTecplotTable: update to the new module system

parent ff4aeac6
set(Module_SRCS
vtkTecplotTableReader.cxx
)
set(classes
vtkTecplotTableReader)
vtk_module_library(vtkIOTecplotTable ${Module_SRCS})
vtk_module_add_module(VTK::IOTecplotTable
CLASSES ${classes})
vtk_module_test_data(
Data/residuals.dat)
add_subdirectory(Cxx)
vtk_add_test_cxx(vtkIOTecplotTableCxxTests tests
NO_VALID
TestTecplotTableReader.cxx
)
ExternalData_add_test(VTKData
NAME TestTecplotTableReader
COMMAND vtkIOTecplotTableCxxTests TestTecplotTableReader
-D DATA{../Data/residuals.dat}
)
vtk_test_cxx_executable(vtkIOTecplotTableCxxTests tests)
......@@ -20,11 +20,8 @@
// This tests the ability to read a Tecplot table. The test file contains residuals from a CFD calculation.
int TestTecplotTableReader(int argc, char *argv[])
{
//------------ test the reader with an input file-----------------
if (argc != 3) return 0; // for some reason we get called twice, once with 5 arguments that are not pointing to the file
char* filename = argv[2];
std::cout << filename << std::endl;
char* filename = vtkTestUtilities::ExpandDataFileName(
argc, argv, "Data/residuals.dat");
vtkTecplotTableReader *reader = vtkTecplotTableReader::New();
reader->SetFileName(filename);
reader->OutputPedigreeIdsOn();
......
vtk_module(vtkIOTecplotTable
GROUPS
StandAlone
TEST_DEPENDS
vtkTestingCore
DEPENDS
vtkCommonCore
vtkCommonExecutionModel
PRIVATE_DEPENDS
vtkCommonDataModel
vtkIOCore
vtksys
)
\ No newline at end of file
NAME
VTK::IOTecplotTable
LIBRARY_NAME
vtkIOTecplotTable
GROUPS
StandAlone
DEPENDS
VTK::CommonCore
VTK::CommonExecutionModel
PRIVATE_DEPENDS
VTK::CommonDataModel
VTK::IOCore
VTK::vtksys
TEST_DEPENDS
VTK::TestingCore
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