2014-02-10 18:57:46 +00:00
|
|
|
##============================================================================
|
|
|
|
## Copyright (c) Kitware, Inc.
|
|
|
|
## All rights reserved.
|
|
|
|
## See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
##
|
2014-02-10 18:57:46 +00:00
|
|
|
## 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-06-02 16:04:08 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Build the configure file.
|
|
|
|
# need to set numerous VTKm cmake properties to the naming convention
|
2017-12-28 21:44:48 +00:00
|
|
|
# that we expect for our C++ defines.
|
2016-06-02 16:04:08 +00:00
|
|
|
|
2017-12-28 21:44:48 +00:00
|
|
|
set(VTKM_NO_ASSERT ${VTKm_NO_ASSERT})
|
2020-06-21 05:42:33 +00:00
|
|
|
set(VTKM_NO_ASSERT_CUDA ${VTKm_NO_ASSERT_CUDA})
|
2020-09-16 14:04:12 +00:00
|
|
|
set(VTKM_NO_ASSERT_HIP ${VTKm_NO_ASSERT_HIP})
|
2016-06-02 16:04:08 +00:00
|
|
|
set(VTKM_USE_DOUBLE_PRECISION ${VTKm_USE_DOUBLE_PRECISION})
|
|
|
|
set(VTKM_USE_64BIT_IDS ${VTKm_USE_64BIT_IDS})
|
|
|
|
|
|
|
|
set(VTKM_ENABLE_CUDA ${VTKm_ENABLE_CUDA})
|
2020-06-16 12:54:01 +00:00
|
|
|
set(VTKM_ENABLE_KOKKOS ${VTKm_ENABLE_KOKKOS})
|
2022-12-12 17:53:30 +00:00
|
|
|
set(VTKM_ENABLE_KOKKOS_THRUST ${VTKm_ENABLE_KOKKOS_THRUST})
|
2020-09-16 13:36:28 +00:00
|
|
|
set(VTKM_ENABLE_OPENMP ${VTKm_ENABLE_OPENMP})
|
|
|
|
set(VTKM_ENABLE_TBB ${VTKm_ENABLE_TBB})
|
|
|
|
|
2017-11-28 21:04:15 +00:00
|
|
|
set(VTKM_ENABLE_MPI ${VTKm_ENABLE_MPI})
|
2016-06-02 16:04:08 +00:00
|
|
|
|
2018-02-20 22:41:57 +00:00
|
|
|
if(VTKM_ENABLE_CUDA)
|
2018-03-29 21:25:36 +00:00
|
|
|
string(REGEX REPLACE "([0-9]+)\\.([0-9]+).*" "\\1" VTKM_CUDA_VERSION_MAJOR ${CMAKE_CUDA_COMPILER_VERSION})
|
|
|
|
string(REGEX REPLACE "([0-9]+)\\.([0-9]+).*" "\\2" VTKM_CUDA_VERSION_MINOR ${CMAKE_CUDA_COMPILER_VERSION})
|
2018-02-20 22:41:57 +00:00
|
|
|
endif()
|
|
|
|
|
2022-12-26 18:40:12 +00:00
|
|
|
if (TARGET vtkm_kokkos_cuda)
|
2020-06-16 12:54:01 +00:00
|
|
|
set(VTKM_KOKKOS_CUDA ON)
|
2022-12-26 18:40:12 +00:00
|
|
|
elseif(TARGET vtkm_kokkos_hip)
|
2020-09-16 13:57:54 +00:00
|
|
|
set(VTKM_KOKKOS_HIP ON)
|
2020-06-16 12:54:01 +00:00
|
|
|
endif()
|
|
|
|
|
2018-08-30 17:29:36 +00:00
|
|
|
set(VTKM_ENABLE_LOGGING ${VTKm_ENABLE_LOGGING})
|
2020-09-03 19:54:24 +00:00
|
|
|
|
2016-06-16 22:25:41 +00:00
|
|
|
vtkm_get_kit_name(kit_name kit_dir)
|
2016-06-02 16:04:08 +00:00
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Configure.h.in
|
2017-09-29 17:07:10 +00:00
|
|
|
${VTKm_BINARY_INCLUDE_DIR}/${kit_dir}/Configure.h
|
2016-06-02 16:04:08 +00:00
|
|
|
@ONLY)
|
2019-11-05 16:12:28 +00:00
|
|
|
vtkm_install_headers(vtkm/internal
|
|
|
|
${VTKm_BINARY_INCLUDE_DIR}/${kit_dir}/Configure.h
|
|
|
|
)
|
2016-06-02 16:04:08 +00:00
|
|
|
|
|
|
|
|
2014-02-10 18:57:46 +00:00
|
|
|
set(headers
|
2020-04-22 19:58:59 +00:00
|
|
|
ArrayPortalBasic.h
|
2020-12-07 22:19:24 +00:00
|
|
|
ArrayPortalDummy.h
|
2018-11-06 16:20:30 +00:00
|
|
|
ArrayPortalHelpers.h
|
2015-08-17 17:15:03 +00:00
|
|
|
ArrayPortalUniformPointCoordinates.h
|
2016-10-28 03:14:29 +00:00
|
|
|
ArrayPortalValueReference.h
|
2016-06-02 16:04:08 +00:00
|
|
|
Assume.h
|
2014-02-10 18:57:46 +00:00
|
|
|
ConfigureFor32.h
|
|
|
|
ConfigureFor64.h
|
2015-07-31 21:48:06 +00:00
|
|
|
ConnectivityStructuredInternals.h
|
2020-02-23 23:37:15 +00:00
|
|
|
DecayHelpers.h
|
2014-02-10 18:57:46 +00:00
|
|
|
ExportMacros.h
|
2014-04-10 19:35:06 +00:00
|
|
|
FunctionInterface.h
|
2014-06-25 22:03:44 +00:00
|
|
|
FunctionInterfaceDetailPost.h
|
|
|
|
FunctionInterfaceDetailPre.h
|
2015-01-14 01:26:13 +00:00
|
|
|
IndexTag.h
|
2019-06-06 18:43:53 +00:00
|
|
|
IndicesExtrude.h
|
2022-03-21 16:32:42 +00:00
|
|
|
Instantiations.h
|
2014-10-15 19:52:27 +00:00
|
|
|
Invocation.h
|
2022-02-09 18:27:30 +00:00
|
|
|
Meta.h
|
2017-08-25 16:49:32 +00:00
|
|
|
Unreachable.h
|
2020-10-06 21:57:04 +00:00
|
|
|
VariantImpl.h
|
|
|
|
VariantImplDetail.h
|
2020-09-03 20:10:15 +00:00
|
|
|
VecOperators.h
|
2016-11-23 21:14:56 +00:00
|
|
|
Windows.h
|
2014-02-10 18:57:46 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
vtkm_declare_headers(${headers})
|
|
|
|
|
2014-06-27 00:26:45 +00:00
|
|
|
vtkm_pyexpander_generated_file(FunctionInterfaceDetailPre.h)
|
|
|
|
vtkm_pyexpander_generated_file(FunctionInterfaceDetailPost.h)
|
2020-10-06 21:57:04 +00:00
|
|
|
vtkm_pyexpander_generated_file(VariantImplDetail.h)
|
2020-09-03 20:10:15 +00:00
|
|
|
vtkm_pyexpander_generated_file(VecOperators.h)
|