2014-02-10 18:56:40 +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 2014 Sandia Corporation.
|
|
|
|
## Copyright 2014 UT-Battelle, LLC.
|
2015-05-21 12:09:22 +00:00
|
|
|
## Copyright 2014 Los Alamos National Security.
|
2014-02-10 18:56:40 +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.
|
|
|
|
##============================================================================
|
|
|
|
|
2015-11-12 21:25:34 +00:00
|
|
|
# When this file is run by CMake (usually through the find_package command),
|
|
|
|
# The following variables will be defined:
|
|
|
|
#
|
|
|
|
# VTKm_INCLUDE_DIRS - Directories containing VTK-m and dependent headers
|
|
|
|
# VTKm_LIBRARIES - The libraries required when using VTK-m
|
|
|
|
|
2014-02-10 18:56:40 +00:00
|
|
|
# This file should be installed in the include directory.
|
|
|
|
# Find the root directory.
|
|
|
|
get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
|
|
get_filename_component(_install_dir "${_dir}/.." ABSOLUTE)
|
|
|
|
|
|
|
|
# The VTKm include file directories.
|
|
|
|
set(VTKm_INCLUDE_DIRS "@VTKm_INCLUDE_DIRS_CONFIG@")
|
|
|
|
|
|
|
|
# The VTKm version number
|
|
|
|
set(VTKm_MAJOR_VERSION "@VTKm_MAJOR_VERSION@")
|
|
|
|
set(VTKm_MINOR_VERSION "@VTKm_MINOR_VERSION@")
|
|
|
|
set(VTKm_PATCH_VERSION "@VTKm_PATCH_VERSION@")
|
2016-06-16 21:38:23 +00:00
|
|
|
set(VTKm_VERSION "@VTKm_VERSION@")
|
2014-02-10 18:56:40 +00:00
|
|
|
|
|
|
|
set(VTKm_REQUIRED_BOOST_VERSION "@VTKm_REQUIRED_BOOST_VERSION@")
|
|
|
|
|
|
|
|
set(VTKm_CMAKE_MODULE_PATH "@VTKm_CMAKE_MODULE_PATH_CONFIG@")
|
|
|
|
|
2015-11-12 21:25:34 +00:00
|
|
|
set(VTKm_ENABLE_CUDA "@VTKm_ENABLE_CUDA@")
|
|
|
|
set(VTKm_ENABLE_TBB "@VTKm_ENABLE_TBB@")
|
|
|
|
|
2014-02-10 18:56:40 +00:00
|
|
|
# VTKm requires some CMake Find modules not included with CMake, so
|
|
|
|
# include the CMake modules distributed with VTKm.
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${VTKm_CMAKE_MODULE_PATH})
|
2015-11-12 21:25:34 +00:00
|
|
|
|
|
|
|
include(VTKmMacros)
|
|
|
|
|
2015-11-12 21:41:22 +00:00
|
|
|
if(VTKm_FIND_REQUIRED)
|
|
|
|
set(vtkm_is_required REQUIRED)
|
|
|
|
else()
|
|
|
|
set(vtkm_is_required)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vtkm_configure_device(Serial ${vtkm_is_required})
|
2015-11-12 21:25:34 +00:00
|
|
|
if(VTKm_ENABLE_CUDA)
|
|
|
|
vtkm_configure_device(CUDA)
|
|
|
|
endif()
|
|
|
|
if(VTKm_ENABLE_TBB)
|
2015-11-12 21:41:22 +00:00
|
|
|
# If configured with TBB, the VTK-m header files might choose TBB as the
|
|
|
|
# default device. In that case, the TBB device is required.
|
|
|
|
vtkm_configure_device(TBB ${vtkm_is_required})
|
2015-11-12 21:25:34 +00:00
|
|
|
endif()
|
2016-01-25 15:57:04 +00:00
|
|
|
|
|
|
|
# Extra compile options that VTKm has generated, such as vectorization settings.
|
|
|
|
# This should be specified to any target with the CMake command target_compile_options
|
|
|
|
# that uses VTK-m.
|
|
|
|
set(VTKm_COMPILE_OPTIONS "@VTKm_COMPILE_OPTIONS@")
|