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
|
2016-08-23 20:07:38 +00:00
|
|
|
find_package(VTKm REQUIRED QUIET
|
2016-10-03 21:55:34 +00:00
|
|
|
OPTIONAL_COMPONENTS Serial OpenGL Rendering GLUT
|
2016-08-23 20:07:38 +00:00
|
|
|
)
|
2016-08-22 17:18:36 +00:00
|
|
|
|
2016-10-03 21:55:34 +00:00
|
|
|
if(VTKm_OpenGL_FOUND AND VTKm_Rendering_FOUND AND VTKm_GLUT_FOUND)
|
2016-05-05 17:26:39 +00:00
|
|
|
add_executable(Rendering_SERIAL Rendering.cxx)
|
2016-10-03 21:55:34 +00:00
|
|
|
target_include_directories(Rendering_SERIAL PRIVATE ${VTKm_INCLUDE_DIRS})
|
2017-01-26 20:20:26 +00:00
|
|
|
target_link_libraries(Rendering_SERIAL PRIVATE ${VTKm_LIBRARIES})
|
2016-05-05 17:26:39 +00:00
|
|
|
target_compile_options(Rendering_SERIAL PRIVATE ${VTKm_COMPILE_OPTIONS})
|
|
|
|
endif()
|