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

vtkDomainsChemistryOpenGL2: update to the new module system

parent 6b5f4b04
include(vtkObjectFactory)
set(Module_SRCS
vtkOpenGLMoleculeMapper.cxx
set(classes
vtkOpenGLMoleculeMapper
)
# Now for the object factory.
......@@ -10,13 +8,17 @@ set(opengl_overrides
)
foreach(_override ${opengl_overrides})
vtk_add_override(vtk${_override} vtkOpenGL${_override})
vtk_object_factory_declare(
BASE vtk${_override}
OVERRIDE vtkOpenGL${_override})
endforeach()
vtk_object_factory_configure("${vtk_module_overrides}")
list(APPEND Module_SRCS
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx)
vtk_object_factory_configure(
SOURCE_FILE vtk_object_factory_source
HEADER_FILE vtk_object_factory_header
EXPORT_MACRO "VTKDOMAINSCHEMISTRYOPENGL2_EXPORT")
vtk_module_library(vtkDomainsChemistryOpenGL2 ${Module_SRCS})
include(vtkOpenGL)
vtk_opengl_link(vtkDomainsChemistryOpenGL2)
vtk_module_add_module(VTK::DomainsChemistryOpenGL2
CLASSES ${classes}
SOURCES ${vtk_object_factory_source}
PRIVATE_HEADERS ${vtk_object_factory_header})
vtk_module_test_data(
Data/2LYZ.pdb
Data/caffeine.pdb)
add_subdirectory(Cxx)
......@@ -12,6 +12,6 @@ vtk_test_cxx_executable(vtkDomainsChemistryOpenGL2CxxTests tests
if(NOT VTK_TEST_TIMEOUT_TestPDBBallAndStickShadows)
set(VTK_TEST_TIMEOUT_TestPDBBallAndStickShadows 360)
endif()
set_tests_properties(vtkDomainsChemistryOpenGL2Cxx-TestPDBBallAndStickShadows
set_tests_properties(VTK::DomainsChemistryOpenGL2Cxx-TestPDBBallAndStickShadows
PROPERTIES TIMEOUT ${VTK_TEST_TIMEOUT_TestPDBBallAndStickShadows}
RUN_SERIAL ON)
vtk_module(vtkDomainsChemistryOpenGL2
IMPLEMENTS
vtkDomainsChemistry
BACKEND
OpenGL2
IMPLEMENTATION_REQUIRED_BY_BACKEND
KIT
vtkOpenGL
TEST_DEPENDS
vtkIOGeometry
vtkTestingCore
vtkTestingRendering
vtkInteractionStyle
vtkRenderingOpenGL2
DEPENDS
vtkCommonCore
vtkDomainsChemistry
vtkRenderingOpenGL2
PRIVATE_DEPENDS
vtkCommonDataModel
vtkCommonExecutionModel
vtkCommonMath
vtkRenderingCore
vtkglew
)
NAME
VTK::DomainsChemistryOpenGL2
LIBRARY_NAME
vtkDomainsChemistryOpenGL2
DESCRIPTION
OpenGL support for chemistry data
KIT
VTK::OpenGL
IMPLEMENTS
VTK::DomainsChemistry
DEPENDS
VTK::CommonCore
VTK::DomainsChemistry
VTK::RenderingOpenGL2
PRIVATE_DEPENDS
VTK::CommonDataModel
VTK::CommonExecutionModel
VTK::CommonMath
VTK::glew
VTK::RenderingCore
TEST_DEPENDS
VTK::CommonSystem
VTK::FiltersSources
VTK::InteractionStyle
VTK::IOGeometry
VTK::RenderingOpenGL2
VTK::TestingCore
VTK::TestingRendering
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