2016-01-20 22:40:54 +00:00
|
|
|
##============================================================================
|
|
|
|
## Copyright (c) Kitware, Inc.
|
|
|
|
## All rights reserved.
|
|
|
|
## See LICENSE.txt for details.
|
|
|
|
## 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.
|
|
|
|
##
|
2016-05-25 21:32:10 +00:00
|
|
|
## Copyright 2016 Sandia Corporation.
|
|
|
|
## Copyright 2016 UT-Battelle, LLC.
|
|
|
|
## Copyright 2016 Los Alamos National Security.
|
2016-01-20 22:40:54 +00:00
|
|
|
##
|
|
|
|
## Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
|
|
|
|
## the U.S. Government retains certain rights in this software.
|
|
|
|
##
|
|
|
|
## Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
|
|
|
|
## Laboratory (LANL), the U.S. Government retains certain rights in
|
|
|
|
## this software.
|
|
|
|
##============================================================================
|
|
|
|
|
|
|
|
set(headers
|
2016-06-02 21:43:30 +00:00
|
|
|
Actor.h
|
2016-05-25 21:32:10 +00:00
|
|
|
AxisAnnotation.h
|
|
|
|
AxisAnnotation2D.h
|
|
|
|
AxisAnnotation3D.h
|
2016-06-01 20:56:30 +00:00
|
|
|
BitmapFont.h
|
|
|
|
BitmapFontFactory.h
|
2016-05-25 21:32:10 +00:00
|
|
|
BoundingBoxAnnotation.h
|
2016-06-02 19:04:01 +00:00
|
|
|
Camera.h
|
2016-06-02 22:02:17 +00:00
|
|
|
Canvas.h
|
|
|
|
CanvasRayTracer.h
|
2016-01-20 22:40:54 +00:00
|
|
|
Color.h
|
2016-05-25 21:32:10 +00:00
|
|
|
ColorBarAnnotation.h
|
2017-07-28 17:31:19 +00:00
|
|
|
ColorLegendAnnotation.h
|
2016-01-20 22:40:54 +00:00
|
|
|
ColorTable.h
|
2017-06-17 21:28:45 +00:00
|
|
|
ConnectivityProxy.h
|
2016-08-26 19:30:52 +00:00
|
|
|
DecodePNG.h
|
2016-06-01 20:56:30 +00:00
|
|
|
MatrixHelpers.h
|
2016-02-09 13:59:26 +00:00
|
|
|
Scene.h
|
2016-06-02 19:41:14 +00:00
|
|
|
Mapper.h
|
|
|
|
MapperRayTracer.h
|
|
|
|
MapperVolume.h
|
2017-06-17 21:28:45 +00:00
|
|
|
MapperConnectivity.h
|
2017-08-16 18:45:28 +00:00
|
|
|
MapperWireframer.h
|
2016-06-01 20:56:30 +00:00
|
|
|
TextAnnotation.h
|
2016-09-01 15:46:37 +00:00
|
|
|
TextAnnotationBillboard.h
|
|
|
|
TextAnnotationScreen.h
|
2016-01-20 22:40:54 +00:00
|
|
|
Triangulator.h
|
2016-06-02 21:43:30 +00:00
|
|
|
View.h
|
2016-11-23 15:48:22 +00:00
|
|
|
View1D.h
|
2016-09-01 18:33:28 +00:00
|
|
|
View2D.h
|
|
|
|
View3D.h
|
2016-05-25 21:32:10 +00:00
|
|
|
WorldAnnotator.h
|
|
|
|
)
|
|
|
|
|
2016-08-25 23:54:32 +00:00
|
|
|
set(sources
|
2016-08-31 23:28:41 +00:00
|
|
|
Actor.cxx
|
2016-08-26 18:58:28 +00:00
|
|
|
AxisAnnotation.cxx
|
2016-08-25 23:54:32 +00:00
|
|
|
AxisAnnotation2D.cxx
|
2016-08-26 18:58:28 +00:00
|
|
|
AxisAnnotation3D.cxx
|
2016-08-26 19:30:52 +00:00
|
|
|
BitmapFont.cxx
|
|
|
|
BitmapFontFactory.cxx
|
2016-09-08 23:08:17 +00:00
|
|
|
BoundingBoxAnnotation.cxx
|
2016-08-26 19:52:07 +00:00
|
|
|
Camera.cxx
|
2016-08-26 21:58:21 +00:00
|
|
|
Canvas.cxx
|
|
|
|
CanvasRayTracer.cxx
|
2016-11-23 18:45:03 +00:00
|
|
|
Color.cxx
|
2016-08-27 02:32:15 +00:00
|
|
|
ColorBarAnnotation.cxx
|
2017-07-28 17:31:19 +00:00
|
|
|
ColorLegendAnnotation.cxx
|
2016-08-27 02:32:15 +00:00
|
|
|
ColorTable.cxx
|
2017-06-17 21:28:45 +00:00
|
|
|
ConnectivityProxy.cxx
|
2016-08-26 19:30:52 +00:00
|
|
|
DecodePNG.cxx
|
2016-08-29 21:50:47 +00:00
|
|
|
Mapper.cxx
|
|
|
|
MapperRayTracer.cxx
|
|
|
|
MapperVolume.cxx
|
2017-06-17 21:28:45 +00:00
|
|
|
MapperConnectivity.cxx
|
2017-08-16 18:45:28 +00:00
|
|
|
MapperWireframer.cxx
|
2016-08-31 23:28:41 +00:00
|
|
|
Scene.cxx
|
2016-09-01 15:46:37 +00:00
|
|
|
TextAnnotation.cxx
|
|
|
|
TextAnnotationBillboard.cxx
|
|
|
|
TextAnnotationScreen.cxx
|
2016-09-01 18:33:28 +00:00
|
|
|
View.cxx
|
2016-11-23 15:48:22 +00:00
|
|
|
View1D.cxx
|
2016-09-01 18:33:28 +00:00
|
|
|
View2D.cxx
|
|
|
|
View3D.cxx
|
2016-09-01 16:39:15 +00:00
|
|
|
WorldAnnotator.cxx
|
2016-08-29 21:50:47 +00:00
|
|
|
|
|
|
|
internal/RunTriangulator.cxx
|
2017-06-17 21:28:45 +00:00
|
|
|
raytracing/BoundingVolumeHierarchy.cxx
|
|
|
|
raytracing/Camera.cxx
|
|
|
|
raytracing/ChannelBuffer.cxx
|
|
|
|
raytracing/Logger.cxx
|
|
|
|
raytracing/RayTracer.cxx
|
2017-08-04 16:24:05 +00:00
|
|
|
raytracing/RayOperations.cxx
|
2017-07-08 20:48:38 +00:00
|
|
|
raytracing/VolumeRendererStructured.cxx
|
2016-08-25 23:54:32 +00:00
|
|
|
)
|
|
|
|
|
2016-05-25 21:32:10 +00:00
|
|
|
set(opengl_headers
|
2016-06-02 22:02:17 +00:00
|
|
|
CanvasGL.h
|
2016-06-02 19:41:14 +00:00
|
|
|
MapperGL.h
|
2016-06-01 20:56:30 +00:00
|
|
|
TextureGL.h
|
2016-05-25 21:32:10 +00:00
|
|
|
WorldAnnotatorGL.h
|
|
|
|
)
|
2016-08-26 21:58:21 +00:00
|
|
|
|
|
|
|
set(opengl_sources
|
|
|
|
CanvasGL.cxx
|
2016-08-29 21:50:47 +00:00
|
|
|
MapperGL.cxx
|
2016-09-01 16:19:29 +00:00
|
|
|
TextureGL.cxx
|
2016-09-01 16:39:15 +00:00
|
|
|
WorldAnnotatorGL.cxx
|
2016-08-26 21:58:21 +00:00
|
|
|
)
|
|
|
|
|
2016-06-15 13:48:45 +00:00
|
|
|
set(egl_headers
|
|
|
|
CanvasEGL.h
|
|
|
|
)
|
2016-05-25 21:32:10 +00:00
|
|
|
|
2016-08-26 21:58:21 +00:00
|
|
|
set(egl_sources
|
|
|
|
CanvasEGL.cxx
|
|
|
|
)
|
|
|
|
|
2016-05-25 21:32:10 +00:00
|
|
|
set(osmesa_headers
|
2016-06-02 22:02:17 +00:00
|
|
|
CanvasOSMesa.h
|
2016-01-20 22:40:54 +00:00
|
|
|
)
|
|
|
|
|
2016-08-26 21:58:21 +00:00
|
|
|
set(osmesa_sources
|
|
|
|
CanvasOSMesa.cxx
|
|
|
|
)
|
|
|
|
|
2016-08-29 20:26:02 +00:00
|
|
|
# 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
|
2017-08-16 18:01:03 +00:00
|
|
|
Mapper.cxx
|
2017-08-16 18:45:28 +00:00
|
|
|
MapperWireframer.cxx
|
2016-08-29 20:26:02 +00:00
|
|
|
CanvasRayTracer.cxx
|
2017-06-17 21:28:45 +00:00
|
|
|
ConnectivityProxy.cxx
|
|
|
|
raytracing/BoundingVolumeHierarchy.cxx
|
|
|
|
raytracing/Camera.cxx
|
|
|
|
raytracing/ChannelBuffer.cxx
|
2017-07-08 20:48:38 +00:00
|
|
|
raytracing/VolumeRendererStructured.cxx
|
2017-08-04 16:24:05 +00:00
|
|
|
raytracing/RayOperations.cxx
|
2017-06-17 21:28:45 +00:00
|
|
|
raytracing/RayTracer.cxx
|
2016-08-29 20:26:02 +00:00
|
|
|
)
|
|
|
|
|
2016-01-20 22:40:54 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
2016-08-25 15:44:34 +00:00
|
|
|
vtkm_configure_component_OpenGL()
|
|
|
|
if(VTKm_OpenGL_FOUND)
|
2016-08-26 21:58:21 +00:00
|
|
|
list(APPEND headers ${opengl_headers})
|
|
|
|
list(APPEND sources ${opengl_sources})
|
2016-12-16 21:34:36 +00:00
|
|
|
|
2016-08-25 15:44:34 +00:00
|
|
|
vtkm_configure_component_OSMesa()
|
|
|
|
if(VTKm_OSMesa_FOUND)
|
2016-08-26 21:58:21 +00:00
|
|
|
list(APPEND headers ${osmesa_headers})
|
|
|
|
list(APPEND sources ${osmesa_sources})
|
2016-08-25 15:44:34 +00:00
|
|
|
endif()
|
|
|
|
|
2017-03-28 13:28:03 +00:00
|
|
|
# vtkm_configure_component_EGL()
|
|
|
|
# if(VTKm_EGL_FOUND)
|
|
|
|
# list(APPEND headers ${egl_headers})
|
|
|
|
# list(APPEND sources ${egl_sources})
|
|
|
|
# endif()
|
2016-11-23 19:14:44 +00:00
|
|
|
endif()
|
2016-05-25 21:32:10 +00:00
|
|
|
|
2016-11-23 19:14:44 +00:00
|
|
|
if(VTKm_ENABLE_OSMESA AND NOT VTKm_OSMesa_FOUND)
|
|
|
|
message(SEND_ERROR "OSMesa was requested by not properly configured.
|
|
|
|
Either make sure the OSMesa headers and library are properly found or set
|
|
|
|
VTKm_ENABLE_OSMESA to OFF.")
|
|
|
|
endif()
|
2016-08-25 23:54:32 +00:00
|
|
|
|
2016-11-23 19:14:44 +00:00
|
|
|
vtkm_declare_headers(${headers})
|
2016-08-25 23:54:32 +00:00
|
|
|
|
2017-02-22 23:18:23 +00:00
|
|
|
vtkm_library(
|
|
|
|
SOURCES ${sources}
|
|
|
|
WRAP_FOR_CUDA ${device_sources}
|
|
|
|
)
|
2016-05-25 21:32:10 +00:00
|
|
|
|
2017-07-28 17:40:39 +00:00
|
|
|
# EGL Libs are added here to ensure propper linking when statically compiling.
|
2017-07-28 17:48:48 +00:00
|
|
|
# This is safe to do even when not using EGL as the values will then be empty.
|
2017-01-26 20:19:02 +00:00
|
|
|
target_link_libraries(vtkm_rendering
|
|
|
|
PUBLIC vtkm_cont
|
|
|
|
PRIVATE ${VTKm_OPENGL_LIBRARIES}
|
|
|
|
${VTKm_BACKEND_LIBRARIES}
|
2017-07-28 17:31:19 +00:00
|
|
|
${EGL_LIBRARIES}
|
2017-01-26 20:19:02 +00:00
|
|
|
)
|
2017-07-28 17:40:39 +00:00
|
|
|
|
|
|
|
# EGL Dirs are added here to ensure propper linking when statically compiling.
|
2017-07-28 17:48:48 +00:00
|
|
|
# This is safe to do even when not using EGL as the values will then be empty.
|
2017-01-26 20:19:02 +00:00
|
|
|
target_include_directories(vtkm_rendering
|
|
|
|
PRIVATE ${VTKm_OPENGL_INCLUDE_DIRS}
|
|
|
|
${VTKm_BACKEND_INCLUDE_DIRS}
|
2017-07-28 17:31:19 +00:00
|
|
|
${EGL_INCLUDE_DIRS}
|
2017-01-26 20:19:02 +00:00
|
|
|
)
|
|
|
|
|
2017-07-08 16:14:08 +00:00
|
|
|
if(UNIX AND NOT APPLE)
|
|
|
|
target_link_libraries(vtkm_rendering PRIVATE rt )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2016-11-23 19:14:44 +00:00
|
|
|
# Subclasses need rendering library
|
|
|
|
vtkm_configure_component_Rendering()
|
2016-01-20 22:40:54 +00:00
|
|
|
|
2016-11-23 19:14:44 +00:00
|
|
|
add_subdirectory(internal)
|
|
|
|
add_subdirectory(raytracing)
|
2016-01-20 22:40:54 +00:00
|
|
|
|
2016-11-23 19:14:44 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
add_subdirectory(testing)
|