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

vtkFiltersOpenTurns: update to the new module system

parent 2a40ea3f
find_package(OpenTURNS 1.11 REQUIRED)
find_package(OpenTURNS 1.8 REQUIRED)
# XXX(fixme)
include(${OPENTURNS_USE_FILE})
set(Module_SRCS
vtkOTDensityMap.cxx
vtkOTFilter.cxx
vtkOTKernelSmoothing.cxx
vtkOTScatterPlotMatrix.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
vtkOTUtilities.cxx)
set(classes
vtkOTDensityMap
vtkOTFilter
vtkOTKernelSmoothing
vtkOTScatterPlotMatrix
vtkOTUtilities)
include(vtkObjectFactory)
vtk_add_override(vtkScatterPlotMatrix vtkOTScatterPlotMatrix)
vtk_object_factory_configure("${vtk_module_overrides}")
vtk_object_factory_declare(
BASE vtkScatterPlotMatrix
OVERRIDE vtkOTScatterPlotMatrix)
vtk_module_library(vtkFiltersOpenTurns ${Module_SRCS})
target_include_directories(vtkFiltersOpenTurns PUBLIC ${OPENTURNS_INCLUDE_DIRS})
target_link_libraries(vtkFiltersOpenTurns LINK_PRIVATE ${OPENTURNS_LIBRARIES})
vtk_object_factory_configure(
SOURCE_FILE vtk_object_factory_source
HEADER_FILE vtk_object_factory_header
EXPORT_MACRO "VTKFILTERSOPENTURNS_EXPORT")
vtk_module_add_module(VTK::FiltersOpenTurns
CLASSES ${classes}
SOURCES ${vtk_object_factory_source}
PRIVATE ${vtk_object_factory_header})
vtk_module_link(VTK::FiltersOpenTurns
PRIVATE
${OPENTURNS_LIBRARIES})
vtk_module_include(VTK::FiltersOpenTurns
PRIVATE
${OPENTURNS_INCLUDE_DIRS})
vtk_module_test_data(
Data/vehicle_data.csv)
add_subdirectory(Cxx)
vtk_module(vtkFiltersOpenTurns
EXCLUDE_FROM_ALL
IMPLEMENTS
vtkChartsCore
DEPENDS
vtkChartsCore
vtkCommonCore
vtkCommonDataModel
vtkCommonExecutionModel
vtkFiltersCore
TEST_DEPENDS
vtkIOInfovis
vtkRenderingContextOpenGL2
vtkTestingCore
vtkTestingRendering
vtkViewsContext2D
)
NAME
VTK::FiltersOpenTurns
LIBRARY_NAME
vtkFiltersOpenTurns
IMPLEMENTS
VTK::ChartsCore
DEPENDS
VTK::ChartsCore
VTK::CommonCore
VTK::CommonDataModel
VTK::CommonExecutionModel
VTK::FiltersCore
TEST_DEPENDS
VTK::IOInfovis
VTK::RenderingContextOpenGL2
VTK::TestingCore
VTK::TestingRendering
VTK::ViewsContext2D
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