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.
|
|
|
|
##============================================================================
|
|
|
|
|
2016-06-29 19:19:42 +00:00
|
|
|
# When this file is run by CMake through the find_package command, the
|
|
|
|
# following variables will be defined:
|
2015-11-12 21:25:34 +00:00
|
|
|
#
|
|
|
|
# VTKm_INCLUDE_DIRS - Directories containing VTK-m and dependent headers
|
|
|
|
# VTKm_LIBRARIES - The libraries required when using VTK-m
|
2016-06-29 19:19:42 +00:00
|
|
|
# VTKm_COMPILE_OPTIONS - Options VTK-m suggests to add to the compiler
|
|
|
|
#
|
|
|
|
# Note that the VTK-m package supports several components. It is important
|
|
|
|
# to request the components being used (as done through find_package arguments).
|
|
|
|
# If no components are requested, then the dependent packages will not be
|
|
|
|
# found and loaded. The following components are supported:
|
|
|
|
#
|
|
|
|
# @VTKm_AVAILABLE_COMPONENTS_LIST@
|
|
|
|
#
|
2015-11-12 21:25:34 +00:00
|
|
|
|
2016-06-16 22:25:41 +00:00
|
|
|
@PACKAGE_INIT@
|
2014-02-10 18:56:40 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
2016-06-16 22:25:41 +00:00
|
|
|
# This is true when the package is still in the build directory (not installed)
|
|
|
|
if(CMAKE_CURRENT_LIST_DIR STREQUAL "@VTKm_BINARY_DIR@/@VTKm_INSTALL_CONFIG_DIR@")
|
2016-06-23 18:28:50 +00:00
|
|
|
set(VTKm_PACKAGE_IN_BUILD TRUE)
|
2016-06-16 22:25:41 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# The VTKm include file directories.
|
|
|
|
set_and_check(VTKm_INCLUDE_DIRS "@PACKAGE_VTKm_INSTALL_INCLUDE_DIR@")
|
|
|
|
if(VTKm_PACKAGE_IN_BUILD)
|
|
|
|
set(VTKm_INCLUDE_DIRS ${VTKm_INCLUDE_DIRS} "@VTKm_SOURCE_DIR@")
|
|
|
|
endif()
|
|
|
|
|
2016-08-23 20:07:38 +00:00
|
|
|
# Clear out the libraries. We will add more when loading components.
|
|
|
|
set(VTKm_LIBRARIES)
|
|
|
|
|
2014-02-10 18:56:40 +00:00
|
|
|
set(VTKm_REQUIRED_BOOST_VERSION "@VTKm_REQUIRED_BOOST_VERSION@")
|
|
|
|
|
2016-06-16 22:25:41 +00:00
|
|
|
if(NOT VTKm_PACKAGE_IN_BUILD)
|
|
|
|
set_and_check(VTKm_CMAKE_MODULE_PATH "@PACKAGE_VTKm_INSTALL_CMAKE_MODULE_DIR@")
|
|
|
|
else()
|
2016-06-23 17:34:23 +00:00
|
|
|
set_and_check(VTKm_CMAKE_MODULE_PATH "@VTKm_SOURCE_DIR@/CMake")
|
2016-06-16 22:25:41 +00:00
|
|
|
endif()
|
2014-02-10 18:56:40 +00:00
|
|
|
|
2016-09-06 18:59:44 +00:00
|
|
|
set(VTKm_BUILD_SHARED_LIBS "@BUILD_SHARED_LIBS@")
|
2015-11-12 21:25:34 +00:00
|
|
|
set(VTKm_ENABLE_CUDA "@VTKm_ENABLE_CUDA@")
|
|
|
|
set(VTKm_ENABLE_TBB "@VTKm_ENABLE_TBB@")
|
2016-06-16 23:39:51 +00:00
|
|
|
set(VTKm_ENABLE_OPENGL_INTEROP "@VTKm_ENABLE_OPENGL_INTEROP@")
|
|
|
|
set(VTKm_BUILD_RENDERING "@VTKm_BUILD_RENDERING@")
|
2015-11-12 21:25:34 +00:00
|
|
|
|
2016-07-28 14:46:59 +00:00
|
|
|
# The VTKm variables used to configure components and packages silently.
|
|
|
|
set(VTKm_CONFIGURE_QUIET "${VTKm_FIND_QUIETLY}")
|
|
|
|
set(VTKm_FIND_PACKAGE_QUIETLY "")
|
|
|
|
if(VTKm_CONFIGURE_QUIET)
|
|
|
|
set(VTKm_FIND_PACKAGE_QUIETLY "QUIET")
|
|
|
|
endif()
|
|
|
|
|
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
|
|
|
|
2016-06-16 23:39:51 +00:00
|
|
|
# This includes a host of macros used by VTK-m CMake.
|
2015-11-12 21:25:34 +00:00
|
|
|
include(VTKmMacros)
|
|
|
|
|
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@")
|
2016-06-16 22:25:41 +00:00
|
|
|
|
2016-06-16 23:39:51 +00:00
|
|
|
# Load the selected components
|
|
|
|
@VTKm_LOAD_COMPONENTS_COMMANDS@
|
|
|
|
|
2016-06-16 22:25:41 +00:00
|
|
|
check_required_components(VTKm)
|