Commit cc72646a authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel

vtkRenderingLICOpenGL2: update to the new module system

parent 9cd575b8
set(Module_SRCS
vtkImageDataLIC2D.cxx
vtkLICNoiseHelper.cxx
vtkLineIntegralConvolution2D.cxx
vtkPainterCommunicator.h
vtkStructuredGridLIC2D.cxx
vtkSurfaceLICComposite.cxx
vtkSurfaceLICHelper.cxx
vtkSurfaceLICInterface.cxx
vtkSurfaceLICMapper.cxx
vtkCompositeSurfaceLICMapper.cxx
vtkTextureIO.cxx
)
set(classes
vtkCompositeSurfaceLICMapper
vtkImageDataLIC2D
vtkLICNoiseHelper
vtkLineIntegralConvolution2D
vtkStructuredGridLIC2D
vtkSurfaceLICComposite
vtkSurfaceLICHelper
vtkSurfaceLICInterface
vtkSurfaceLICMapper
vtkTextureIO)
if (VTK_RENDERINGPARALLELLIC_SURFACELICPAINTER_TIMER)
add_definitions("-DvtkSurfaceLICPainterTIME")
endif()
if (VTK_RENDERINGPARALLELLIC_LINEINTEGRALCONVLOLUTION2D_TIMER)
add_definitions("-DvtkLineIntegralConvolution2DTIME")
endif()
set(headers
vtkPainterCommunicator.h)
set(shader_files
vtkLineIntegralConvolution2D_VT.glsl
vtkLineIntegralConvolution2D_AAH.glsl
vtkLineIntegralConvolution2D_AAV.glsl
vtkLineIntegralConvolution2D_CE.glsl
vtkLineIntegralConvolution2D_EE.glsl
vtkLineIntegralConvolution2D_LIC0.glsl
vtkLineIntegralConvolution2D_LICI.glsl
vtkLineIntegralConvolution2D_LICN.glsl
vtkLineIntegralConvolution2D_EE.glsl
vtkLineIntegralConvolution2D_CE.glsl
vtkLineIntegralConvolution2D_AAH.glsl
vtkLineIntegralConvolution2D_AAV.glsl
vtkLineIntegralConvolution2D_VT.glsl
vtkStructuredGridLIC2D_fs.glsl
vtkSurfaceLICInterface_SC.glsl
vtkSurfaceLICInterface_CE.glsl
vtkSurfaceLICInterface_DCpy.glsl
)
unset(shader_h_files)
foreach(file ${shader_files})
vtkSurfaceLICInterface_SC.glsl)
set(shader_h_files)
set(shader_cxx_files)
foreach (shader_file IN LISTS shader_files)
vtk_encode_string(
INPUT "${file}"
INPUT "${shader_file}"
EXPORT_SYMBOL "VTKRENDERINGLICOPENGL2_EXPORT"
EXPORT_HEADER "vtkRenderingLICOpenGL2Module.h"
HEADER_OUTPUT header
SOURCE_OUTPUT source)
list(APPEND Module_SRCS ${source})
endforeach()
list(APPEND shader_cxx_files ${source})
list(APPEND shader_h_files ${header})
endforeach ()
vtk_module_library(${vtk-module} ${Module_SRCS})
vtk_module_add_module(VTK::RenderingLICOpenGL2
CLASSES ${classes}
SOURCES ${shader_cxx_files}
HEADERS ${headers}
PRIVATE_HEADERS ${shader_h_files})
include(vtkOpenGL)
vtk_opengl_link(${vtk-module})
if (VTK_RENDERINGPARALLELLIC_SURFACELICPAINTER_TIMER)
vtk_module_definitions(VTK::RenderingLICOpenGL2
PRIVATE
vtkSurfaceLICPainterTIME)
endif ()
if (VTK_RENDERINGPARALLELLIC_LINEINTEGRALCONVLOLUTION2D_TIMER)
vtk_module_definitions(VTK::RenderingLICOpenGL2
PRIVATE
vtkLineIntegralConvolution2DTIME)
endif ()
vtk_module_test_data(
Data/SurfaceVectors.vtk
Data/noise.png
Data/timestep_0_15.vts)
add_subdirectory(Cxx)
vtk_module(vtkRenderingLICOpenGL2
BACKEND
OpenGL2
TEST_DEPENDS
vtkTestingCore
vtkTestingRendering
vtkInteractionStyle
KIT
vtkOpenGL
DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonExecutionModel
vtkRenderingOpenGL2
PRIVATE_DEPENDS
vtkCommonMath
vtkCommonSystem
vtkIOCore
vtkIOLegacy
vtkIOXML
vtkImagingCore
vtkImagingSources
vtkRenderingCore
vtkglew
vtksys
)
NAME
VTK::RenderingLICOpenGL2
LIBRARY_NAME
vtkRenderingLICOpenGL2
IMPLEMENTABLE
KIT
VTK::OpenGL
DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::CommonExecutionModel
VTK::RenderingOpenGL2
PRIVATE_DEPENDS
VTK::CommonMath
VTK::CommonSystem
VTK::IOCore
VTK::IOLegacy
VTK::IOXML
VTK::ImagingCore
VTK::ImagingSources
VTK::RenderingCore
VTK::glew
VTK::opengl
VTK::vtksys
TEST_DEPENDS
VTK::CommonSystem
VTK::FiltersExtraction
VTK::FiltersGeometry
VTK::FiltersSources
VTK::IOImage
VTK::IOLegacy
VTK::IOXML
VTK::ImagingCore
VTK::InteractionStyle
VTK::TestingCore
VTK::TestingRendering
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