CMakeLists.txt 2.22 KB
Newer Older
1
2
3
4
5
6
7
8
##============================================================================
##  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.
##
Kenneth Moreland's avatar
Kenneth Moreland committed
9
##  Copyright 2014 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
10
##  Copyright 2014 UT-Battelle, LLC.
11
##  Copyright 2014 Los Alamos National Security.
12
##
Kenneth Moreland's avatar
Kenneth Moreland committed
13
##  Under the terms of Contract DE-NA0003525 with NTESS,
14
15
16
17
18
19
20
##  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.
##============================================================================

21
22
23
24
25
26
27
28
29
30
#-----------------------------------------------------------------------------
# Build the configure file.
# need to set numerous VTKm cmake properties to the naming convention
# that we exepect for our C++ defines.

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})
set(VTKM_ENABLE_TBB ${VTKm_ENABLE_TBB})
31
set(VTKM_ENABLE_MPI ${VTKm_ENABLE_MPI})
32

33
vtkm_get_kit_name(kit_name kit_dir)
34
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Configure.h.in
35
  ${VTKm_BINARY_INCLUDE_DIR}/${kit_dir}/Configure.h
36
37
  @ONLY)
vtkm_install_headers(
38
  vtkm/internal ${VTKm_BINARY_INCLUDE_DIR}/${kit_dir}/Configure.h)
39
40
41
42
43
44
45
46

unset(VTKM_ENABLE_TBB)
unset(VTKM_ENABLE_CUDA)

unset(VTKM_USE_64BIT_IDS)
unset(VTKM_USE_DOUBLE_PRECISION)


47
set(headers
48
  ArrayPortalUniformPointCoordinates.h
49
  ArrayPortalValueReference.h
50
  Assume.h
51
  brigand.hpp
52
53
  ConfigureFor32.h
  ConfigureFor64.h
54
  ConnectivityStructuredInternals.h
55
  ExportMacros.h
56
  FunctionInterface.h
57
58
  FunctionInterfaceDetailPost.h
  FunctionInterfaceDetailPre.h
59
  IndexTag.h
Kenneth Moreland's avatar
Kenneth Moreland committed
60
  Invocation.h
Kenneth Moreland's avatar
Kenneth Moreland committed
61
  ListTagDetail.h
Allison Vacanti's avatar
Allison Vacanti committed
62
  Unreachable.h
63
  Windows.h
64
65
66
67
  )

vtkm_declare_headers(${headers})

68
69
70
vtkm_pyexpander_generated_file(FunctionInterfaceDetailPre.h)
vtkm_pyexpander_generated_file(FunctionInterfaceDetailPost.h)

71
72
add_subdirectory(testing)