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

vtkRenderingContextOpenGL2: update to the new module system

parent 29f9251e
include(vtkObjectFactory)
set(classes
vtkOpenGLContextActor
vtkOpenGLContextBufferId
vtkOpenGLContextDevice2D
vtkOpenGLContextDevice3D
vtkOpenGLPropItem)
set(module_SRCS
vtkOpenGLContextActor.cxx
vtkOpenGLContextBufferId.cxx
vtkOpenGLContextDevice2D.cxx
vtkOpenGLContextDevice3D.cxx
vtkOpenGLPropItem.cxx
)
set(opengl_overrides
ContextActor
ContextDevice2D
ContextDevice3D
PropItem)
foreach (opengl_override IN LISTS opengl_overrides)
vtk_object_factory_declare(
BASE "vtk${opengl_override}"
OVERRIDE "vtkOpenGL${opengl_override}")
endforeach ()
vtk_object_factory_declare(
BASE vtkAbstractContextBufferId
OVERRIDE vtkOpenGLContextBufferId)
set(_opengl_overrides
"ContextActor"
"ContextDevice2D"
"ContextDevice3D"
"PropItem"
)
foreach(_override ${_opengl_overrides})
vtk_add_override("vtk${_override}" "vtkOpenGL${_override}")
endforeach()
vtk_add_override("vtkAbstractContextBufferId" "vtkOpenGLContextBufferId")
vtk_object_factory_configure("${vtk_module_overrides}")
vtk_object_factory_configure(
SOURCE_FILE vtk_object_factory_source
HEADER_FILE vtk_object_factory_header
EXPORT_MACRO "VTKRENDERINGCONTEXTOPENGL2_EXPORT")
list(APPEND module_SRCS
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx)
vtk_module_library(${vtk-module} ${module_SRCS})
vtk_module_link_libraries(${vtk-module}
LINK_PRIVATE ${GLEW_LIBRARY} ${OPENGL_LIBRARIES})
include(vtkOpenGL)
vtk_opengl_link(${vtk-module})
vtk_module_add_module(VTK::RenderingContextOpenGL2
CLASSES ${classes}
SOURCES ${vtk_object_factory_source}
PRIVATE_HEADERS ${vtk_object_factory_header})
vtk_module(vtkRenderingContextOpenGL2
IMPLEMENTS
vtkRenderingContext2D
BACKEND
OpenGL2
IMPLEMENTATION_REQUIRED_BY_BACKEND
KIT
vtkOpenGL
DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkRenderingContext2D
vtkRenderingCore
vtkRenderingFreeType
vtkRenderingOpenGL2
PRIVATE_DEPENDS
vtkCommonMath
vtkCommonTransforms
vtkImagingCore
vtkglew
)
NAME
VTK::RenderingContextOpenGL2
LIBRARY_NAME
vtkRenderingContextOpenGL2
KIT
VTK::OpenGL
IMPLEMENTS
VTK::RenderingContext2D
DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::RenderingContext2D
VTK::RenderingCore
VTK::RenderingFreeType
VTK::RenderingOpenGL2
PRIVATE_DEPENDS
VTK::CommonMath
VTK::CommonTransforms
VTK::ImagingCore
VTK::glew
VTK::opengl
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