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

vtkIOLSDyna: update to the new module system

parent b01dec78
set(Module_SRCS
vtkLSDynaPart.cxx
vtkLSDynaPartCollection.cxx
vtkLSDynaReader.cxx
vtkLSDynaSummaryParser.cxx
LSDynaMetaData.cxx
LSDynaFamily.cxx
)
set(classes
LSDynaFamily
LSDynaMetaData
vtkLSDynaPart
vtkLSDynaPartCollection
vtkLSDynaReader
vtkLSDynaSummaryParser)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/LSDynaExport.h.in
${CMAKE_CURRENT_BINARY_DIR}/LSDynaExport.h
)
vtk_module_library(vtkIOLSDyna ${Module_SRCS})
vtk_module_add_module(VTK::IOLSDyna
CLASSES ${classes}
SOURCES ${sources})
#ifndef LSDynaExport_h
#define LSDynaExport_h
#include <vtksys/Configure.h>
#include <string>
#include <iostream>
#include "vtkABI.h"
#cmakedefine BUILD_SHARED_LIBS
// Now set up all of the export macros
#if defined(BUILD_SHARED_LIBS)
#if defined(LSDyna_EXPORTS)
#define LSDyna_EXPORT VTK_ABI_EXPORT
#else
#define LSDyna_EXPORT VTK_ABI_IMPORT
#endif
#else
#define LSDyna_EXPORT
#endif
#endif
......@@ -29,7 +29,6 @@
#define __LSDynaFamily_h
#include "vtkType.h"
#include "LSDynaExport.h"
#include <string.h>
#include <stdio.h>
......
......@@ -27,7 +27,6 @@
#ifndef __LSDynaMetaData_h
#define __LSDynaMetaData_h
#include "LSDynaExport.h"
#include "LSDynaFamily.h"
#include <string>
......
add_subdirectory(Cxx)
if (VTK_USE_LARGE_DATA)
vtk_module_test_data(
Data/LSDyna/ale/,REGEX:.*
Data/LSDyna/foam/,REGEX:.*
Data/LSDyna/hemi.draw/,REGEX:.*
Data/LSDyna/bug_14713/,REGEX:.*
Data/LSDyna/impact/,REGEX:.*)
add_subdirectory(Cxx)
endif ()
if(VTK_USE_LARGE_DATA)
# Tell ExternalData to fetch test input at build time.
ExternalData_Expand_Arguments(VTKData _
"DATA{${VTK_TEST_INPUT_DIR}/LSDyna/ale/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/LSDyna/foam/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/LSDyna/hemi.draw/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/LSDyna/bug_14713/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/LSDyna/impact/,REGEX:.*}"
)
vtk_add_test_cxx(vtkIOLSDynaCxxTests tests
TestLSDynaReader.cxx
TestLSDynaReaderDeflection.cxx
#TestLSDynaReaderNoDefl.cxx
TestLSDynaReaderSPH.cxx
)
endif()
vtk_add_test_cxx(vtkIOLSDynaCxxTests tests
TestLSDynaReader.cxx
TestLSDynaReaderDeflection.cxx
#TestLSDynaReaderNoDefl.cxx
TestLSDynaReaderSPH.cxx
)
vtk_test_cxx_executable(vtkIOLSDynaCxxTests tests)
vtk_module(vtkIOLSDyna
GROUPS
StandAlone
TEST_DEPENDS
vtkRenderingOpenGL2
vtkTestingRendering
vtkInteractionStyle
KIT
vtkIO
DEPENDS
vtkCommonCore
vtkCommonExecutionModel
vtkIOXMLParser
PRIVATE_DEPENDS
vtkCommonDataModel
vtksys
)
NAME
VTK::IOLSDyna
LIBRARY_NAME
vtkIOLSDyna
KIT
VTK::IO
GROUPS
StandAlone
DEPENDS
VTK::CommonCore
VTK::CommonExecutionModel
VTK::IOXMLParser
PRIVATE_DEPENDS
VTK::CommonDataModel
VTK::vtksys
TEST_DEPENDS
VTK::FiltersGeometry
VTK::IOImage
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