Commit 383b1f10 authored by Ben Boeckel's avatar Ben Boeckel

vtkInteractionStyle: update to the new module system

parent 75fd9e1e
include(vtkObjectFactory)
set(classes
vtkInteractorStyleDrawPolygon
vtkInteractorStyleFlight
vtkInteractorStyleImage
vtkInteractorStyleJoystickActor
vtkInteractorStyleJoystickCamera
vtkInteractorStyleMultiTouchCamera
vtkInteractorStyleRubberBand2D
vtkInteractorStyleRubberBand3D
vtkInteractorStyleRubberBandPick
vtkInteractorStyleRubberBandZoom
vtkInteractorStyleTerrain
vtkInteractorStyleTrackball
vtkInteractorStyleTrackballActor
vtkInteractorStyleTrackballCamera
vtkInteractorStyleUnicam
vtkInteractorStyleUser
set(Module_SRCS
vtkInteractorStyleDrawPolygon.cxx
vtkInteractorStyleFlight.cxx
vtkInteractorStyleImage.cxx
vtkInteractorStyleJoystickActor.cxx
vtkInteractorStyleJoystickCamera.cxx
vtkInteractorStyleMultiTouchCamera.cxx
vtkInteractorStyleRubberBand2D.cxx
vtkInteractorStyleRubberBand3D.cxx
vtkInteractorStyleRubberBandPick.cxx
vtkInteractorStyleRubberBandZoom.cxx
vtkInteractorStyleTerrain.cxx
vtkInteractorStyleTrackballActor.cxx
vtkInteractorStyleTrackballCamera.cxx
vtkInteractorStyleTrackball.cxx
vtkInteractorStyleUnicam.cxx
vtkInteractorStyleUser.cxx
vtkInteractorStyleSwitch
vtkParallelCoordinatesInteractorStyle)
vtkInteractorStyleSwitch.cxx
vtkParallelCoordinatesInteractorStyle.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
# Now to generate our object factory.
set(vtk_module_overrides "vtkInteractorStyleSwitchBase")
if (ANDROID OR APPLE_IOS)
set(vtk_module_vtkInteractorStyleSwitchBase_override "vtkInteractorStyleMultiTouchCamera")
else()
set(vtk_module_vtkInteractorStyleSwitchBase_override "vtkInteractorStyleSwitch")
endif()
vtk_object_factory_configure("${vtk_module_overrides}")
set(style_override "vtkInteractorStyleMultiTouchCamera")
else ()
set(style_override "vtkInteractorStyleSwitch")
endif ()
vtk_object_factory_declare(
BASE vtkInteractorStyleSwitchBase
OVERRIDE "${style_override}")
vtk_object_factory_configure(
SOURCE_FILE vtk_object_factory_source
HEADER_FILE vtk_object_factory_header
EXPORT_MACRO "VTKINTERACTIONSTYLE_EXPORT")
vtk_module_library(vtkInteractionStyle ${Module_SRCS})
vtk_module_add_module(VTK::InteractionStyle
CLASSES ${classes}
SOURCES ${vtk_object_factory_source}
PRIVATE_HEADERS ${vtk_object_factory_header})
add_subdirectory(Cxx)
if (VTK_WRAP_PYTHON)
vtk_module_test_data(
Data/SainteHelens.dem
Data/beach.tif)
add_subdirectory(Python)
endif ()
include(vtkOpenGL)
if(VTK_CAN_DO_ONSCREEN AND NOT VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN)
if (VTK_CAN_DO_ONSCREEN AND NOT VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN)
vtk_add_test_python(
TestFlyTo.py
TestStyleRubberBandZoom.py
......@@ -16,4 +15,4 @@ if(VTK_CAN_DO_ONSCREEN AND NOT VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN)
set_tests_properties(vtkInteractionStylePython-TestStyleRubberBandZoomPerspective
PROPERTIES RUN_SERIAL ON)
endif()
endif ()
vtk_module(vtkInteractionStyle
GROUPS
Rendering
IMPLEMENTS
vtkRenderingCore
KIT
vtkInteraction
DEPENDS
vtkCommonDataModel
vtkRenderingCore
PRIVATE_DEPENDS
vtkCommonCore
vtkCommonMath
vtkCommonTransforms
vtkFiltersExtraction
vtkFiltersSources
)
\ No newline at end of file
NAME
VTK::InteractionStyle
LIBRARY_NAME
vtkInteractionStyle
KIT
VTK::Interaction
GROUPS
Rendering
IMPLEMENTS
VTK::RenderingCore
DEPENDS
VTK::CommonDataModel
VTK::RenderingCore
PRIVATE_DEPENDS
VTK::CommonCore
VTK::CommonMath
VTK::CommonTransforms
VTK::FiltersExtraction
VTK::FiltersSources
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