2016-05-05 17:26:39 +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.
|
|
|
|
##
|
|
|
|
## Copyright 2015 Sandia Corporation.
|
|
|
|
## Copyright 2015 UT-Battelle, LLC.
|
|
|
|
## Copyright 2015 Los Alamos National Security.
|
|
|
|
##
|
|
|
|
## 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.
|
|
|
|
##
|
|
|
|
##=============================================================================
|
|
|
|
|
2016-08-22 17:18:36 +00:00
|
|
|
#Find the VTK-m package
|
|
|
|
find_package(VTKm QUIET REQUIRED COMPONENTS Base)
|
|
|
|
|
2016-06-21 23:40:30 +00:00
|
|
|
vtkm_configure_component_OpenGL()
|
|
|
|
vtkm_configure_component_Serial()
|
2016-08-22 17:18:36 +00:00
|
|
|
|
|
|
|
find_package(GLUT)
|
2016-06-21 23:40:30 +00:00
|
|
|
|
|
|
|
if(VTKm_OpenGL_FOUND AND GLUT_FOUND)
|
2016-05-05 17:26:39 +00:00
|
|
|
add_executable(Rendering_SERIAL Rendering.cxx)
|
2016-06-21 23:40:30 +00:00
|
|
|
target_include_directories(Rendering_SERIAL PRIVATE ${GLUT_INCLUDE_DIR} ${VTKm_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(Rendering_SERIAL ${GLUT_LIBRARIES} ${VTKm_LIBRARIES})
|
2016-05-05 17:26:39 +00:00
|
|
|
target_compile_options(Rendering_SERIAL PRIVATE ${VTKm_COMPILE_OPTIONS})
|
|
|
|
endif()
|