forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (39 loc) · 1.06 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
include(vtkObjectFactory)
set(module_SRCS
vtkOpenGLContextActor.cxx
vtkOpenGLContextBufferId.cxx
vtkOpenGLContextDevice2D.cxx
vtkOpenGLContextDevice3D.cxx
vtkOpenGLPropItem.cxx
)
set_source_files_properties(
vtkOpenGLContextBufferId
vtkOpenGLContextDevice2D
vtkOpenGLContextDevice3D
vtkOpenGLPropItem
WRAP_EXCLUDE
)
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}")
list(APPEND module_SRCS
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx)
set_source_files_properties(
${vtk-module}ObjectFactory
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
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})