Commit 35a75cc9 authored by Ben Boeckel's avatar Ben Boeckel

vtkWebGLExporter: update to the new module system

parent d94b2b87
......@@ -7,28 +7,33 @@
# This code base should be cleaned up to follow VTK standard and even be
# integrated into VTK itself. But for now it is provided as is.
set(classes
vtkPVWebGLExporter
vtkWebGLDataSet
vtkWebGLExporter
vtkWebGLObject
vtkWebGLPolyData
vtkWebGLWidget)
set(Module_SRCS
vtkPVWebGLExporter.cxx
vtkWebGLDataSet.cxx
vtkWebGLExporter.cxx
vtkWebGLObject.cxx
vtkWebGLPolyData.cxx
vtkWebGLWidget.cxx
)
set(JAVASCRIPT_SRCS
set(javascript_files
webglRenderer.js
glMatrix.js
)
glMatrix.js)
set(sources)
set(private_headers)
foreach(file ${JAVASCRIPT_SRCS})
foreach (javascript_file IN LISTS javascript_files)
vtk_encode_string(
INPUT "${file}"
INPUT "${javascript_file}"
HEADER_OUTPUT header
SOURCE_OUTPUT source)
list(APPEND Module_SRCS ${source})
endforeach()
list(APPEND sources
${source})
list(APPEND private_headers
${header})
endforeach ()
vtk_module_library(${vtk-module} ${Module_SRCS})
vtk_module_add_module(VTK::WebGLExporter
CLASSES ${classes}
SOURCES ${sources}
PRIVATE_HEADERS ${private_headers})
vtk_module(vtkWebGLExporter
GROUPS
Web
EXCLUDE_FROM_ALL
DEPENDS
vtkCommonCore
vtkIOExport
PRIVATE_DEPENDS
vtkCommonDataModel
vtkCommonMath
vtkFiltersCore
vtkFiltersGeometry
vtkIOCore
vtkInteractionWidgets
vtkRenderingAnnotation
vtkRenderingCore
vtksys
)
NAME
VTK::WebGLExporter
LIBRARY_NAME
vtkWebGLExporter
GROUPS
Web
DEPENDS
VTK::CommonCore
VTK::IOExport
PRIVATE_DEPENDS
VTK::CommonDataModel
VTK::CommonMath
VTK::FiltersCore
VTK::FiltersGeometry
VTK::IOCore
VTK::InteractionWidgets
VTK::RenderingAnnotation
VTK::RenderingCore
VTK::vtksys
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