vtk-m/vtkm/rendering/CMakeLists.txt

166 lines
4.0 KiB
CMake
Raw Normal View History

2016-01-20 22:40:54 +00:00
##============================================================================
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt for details.
2019-04-15 23:24:21 +00:00
##
2016-01-20 22:40:54 +00:00
## This software is distributed WITHOUT ANY WARRANTY; without even
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
## PURPOSE. See the above copyright notice for more information.
##============================================================================
#unconditionally include rendering contexts so that the helper functions
#are around even if rendering isn't enabled
include(VTKmRenderingContexts)
if(NOT VTKm_ENABLE_RENDERING)
return()
endif()
2016-01-20 22:40:54 +00:00
set(headers
Actor.h
AxisAnnotation.h
AxisAnnotation2D.h
AxisAnnotation3D.h
BitmapFont.h
BitmapFontFactory.h
BoundingBoxAnnotation.h
2016-06-02 19:04:01 +00:00
Camera.h
Canvas.h
CanvasRayTracer.h
2016-01-20 22:40:54 +00:00
Color.h
ColorBarAnnotation.h
ColorLegendAnnotation.h
ConnectivityProxy.h
2018-09-11 02:25:42 +00:00
Cylinderizer.h
DecodePNG.h # deprecated
EncodePNG.h # deprecated
LineRenderer.h
LineRendererBatcher.h
MatrixHelpers.h
Scene.h
Mapper.h
2018-09-11 02:25:42 +00:00
MapperCylinder.h
MapperPoint.h
MapperQuad.h
MapperRayTracer.h
MapperVolume.h
MapperConnectivity.h
2017-08-16 18:45:28 +00:00
MapperWireframer.h
2018-09-11 02:25:42 +00:00
Quadralizer.h
2020-02-18 03:00:09 +00:00
ScalarRenderer.h
TextAnnotation.h
TextAnnotationBillboard.h
TextAnnotationScreen.h
2017-09-07 16:51:41 +00:00
TextRenderer.h
TextRendererBatcher.h
2017-09-18 22:18:33 +00:00
Texture2D.h
2016-01-20 22:40:54 +00:00
Triangulator.h
View.h
2016-11-23 15:48:22 +00:00
View1D.h
View2D.h
View3D.h
Wireframer.h
WorldAnnotator.h
)
set(sources
Actor.cxx
AxisAnnotation.cxx
AxisAnnotation2D.cxx
AxisAnnotation3D.cxx
2016-08-26 19:30:52 +00:00
BitmapFont.cxx
BitmapFontFactory.cxx
BoundingBoxAnnotation.cxx
2016-08-26 19:52:07 +00:00
Camera.cxx
Color.cxx
ColorBarAnnotation.cxx
ColorLegendAnnotation.cxx
LineRenderer.cxx
Mapper.cxx
MapperConnectivity.cxx
Scene.cxx
TextAnnotation.cxx
TextAnnotationBillboard.cxx
TextAnnotationScreen.cxx
TextRenderer.cxx
View.cxx
View1D.cxx
View2D.cxx
View3D.cxx
WorldAnnotator.cxx
raytracing/Logger.cxx
raytracing/MeshConnectivityContainers.cxx
raytracing/TriangleExtractor.cxx
)
# This list of sources has code that uses devices and so might need to be
# compiled with a device-specific compiler (like CUDA).
set(device_sources
Canvas.cxx
CanvasRayTracer.cxx
ConnectivityProxy.cxx
LineRendererBatcher.cxx
2018-09-11 02:25:42 +00:00
MapperCylinder.cxx
MapperPoint.cxx
MapperQuad.cxx
MapperRayTracer.cxx
MapperVolume.cxx
MapperWireframer.cxx
2020-02-18 03:00:09 +00:00
ScalarRenderer.cxx
TextRendererBatcher.cxx
internal/RunTriangulator.cxx
raytracing/BoundingVolumeHierarchy.cxx
raytracing/Camera.cxx
raytracing/ChannelBuffer.cxx
raytracing/ConnectivityTracer.cxx
raytracing/CylinderExtractor.cxx
raytracing/CylinderIntersector.cxx
raytracing/MeshConnectivityBuilder.cxx
raytracing/QuadExtractor.cxx
raytracing/QuadIntersector.cxx
raytracing/RayOperations.cxx
raytracing/RayTracer.cxx
2020-02-08 04:30:55 +00:00
raytracing/ScalarRenderer.cxx
raytracing/ShapeIntersector.cxx
raytracing/SphereExtractor.cxx
raytracing/SphereIntersector.cxx
raytracing/TriangleIntersector.cxx
raytracing/VolumeRendererStructured.cxx
)
# the None backend supports not building the opengl version
2016-01-20 22:40:54 +00:00
#-----------------------------------------------------------------------------
vtkm_library(
NAME vtkm_rendering
SOURCES ${sources}
HEADERS ${headers}
DEVICE_SOURCES ${device_sources}
)
#-----------------------------------------------------------------------------
2022-02-12 03:52:43 +00:00
target_link_libraries(vtkm_rendering PUBLIC vtkm_filter_image_processing vtkm_filter_entity_extraction vtkm_io)
if(UNIX AND NOT APPLE)
target_link_libraries(vtkm_rendering PRIVATE rt)
endif()
#-----------------------------------------------------------------------------
target_link_libraries(vtkm_rendering PUBLIC vtkm_rendering_gl_context)
if(NOT VTKm_INSTALL_ONLY_LIBRARIES)
install(TARGETS vtkm_rendering_gl_context
EXPORT ${VTKm_EXPORT_NAME}
)
endif()
#-----------------------------------------------------------------------------
add_subdirectory(internal)
add_subdirectory(raytracing)
if (VTKm_ENABLE_TESTING)
add_subdirectory(testing)
endif ()