2014-02-10 19:53:03 +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 19:53:03 +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.
|
|
|
|
##============================================================================
|
|
|
|
|
|
|
|
set(headers
|
|
|
|
ArrayHandle.h
|
2015-09-01 21:42:45 +00:00
|
|
|
ArrayHandleCast.h
|
2015-12-22 17:41:30 +00:00
|
|
|
ArrayHandleCartesianProduct.h
|
2014-05-05 15:24:03 +00:00
|
|
|
ArrayHandleCompositeVector.h
|
2015-05-13 20:24:51 +00:00
|
|
|
ArrayHandleConstant.h
|
2014-04-03 19:17:14 +00:00
|
|
|
ArrayHandleCounting.h
|
2017-02-07 17:53:53 +00:00
|
|
|
ArrayHandleDiscard.h
|
2015-09-28 23:19:38 +00:00
|
|
|
ArrayHandleGroupVec.h
|
2016-10-28 03:14:29 +00:00
|
|
|
ArrayHandleGroupVecVariable.h
|
2015-02-13 06:24:43 +00:00
|
|
|
ArrayHandleImplicit.h
|
2015-09-15 04:11:09 +00:00
|
|
|
ArrayHandleIndex.h
|
2015-04-24 00:45:24 +00:00
|
|
|
ArrayHandlePermutation.h
|
2017-05-08 17:49:18 +00:00
|
|
|
ArrayHandleReverse.h
|
2016-08-19 19:47:44 +00:00
|
|
|
ArrayHandleStreaming.h
|
2015-04-13 20:43:18 +00:00
|
|
|
ArrayHandleTransform.h
|
2014-05-01 23:19:54 +00:00
|
|
|
ArrayHandleUniformPointCoordinates.h
|
2015-04-23 17:20:03 +00:00
|
|
|
ArrayHandleZip.h
|
2014-02-10 19:53:03 +00:00
|
|
|
ArrayPortal.h
|
2014-09-04 17:56:15 +00:00
|
|
|
ArrayPortalToIterators.h
|
2016-07-15 00:16:57 +00:00
|
|
|
ArrayHandleConcatenate.h
|
2016-08-05 20:05:32 +00:00
|
|
|
ArrayRangeCompute.h
|
2017-02-24 00:12:14 +00:00
|
|
|
ArrayRangeCompute.hxx
|
2015-05-29 14:49:57 +00:00
|
|
|
CellSet.h
|
|
|
|
CellSetExplicit.h
|
2015-07-27 16:13:27 +00:00
|
|
|
CellSetListTag.h
|
2015-09-28 17:15:26 +00:00
|
|
|
CellSetSingleType.h
|
2015-05-29 14:49:57 +00:00
|
|
|
CellSetStructured.h
|
2015-09-28 17:15:26 +00:00
|
|
|
CellSetPermutation.h
|
2015-05-29 14:49:57 +00:00
|
|
|
CoordinateSystem.h
|
2015-01-27 22:02:03 +00:00
|
|
|
DataSet.h
|
2015-12-22 17:41:30 +00:00
|
|
|
DataSetBuilderExplicit.h
|
|
|
|
DataSetBuilderRectilinear.h
|
2016-01-19 22:54:05 +00:00
|
|
|
DataSetBuilderUniform.h
|
2015-12-22 17:41:30 +00:00
|
|
|
DataSetFieldAdd.h
|
2014-02-11 17:34:56 +00:00
|
|
|
DeviceAdapter.h
|
2014-11-25 14:14:04 +00:00
|
|
|
DeviceAdapterAlgorithm.h
|
2016-08-15 23:15:17 +00:00
|
|
|
DeviceAdapterListTag.h
|
2014-04-03 19:17:14 +00:00
|
|
|
DynamicArrayHandle.h
|
2015-07-27 16:13:27 +00:00
|
|
|
DynamicCellSet.h
|
2014-02-10 19:53:03 +00:00
|
|
|
Error.h
|
2017-01-09 21:15:32 +00:00
|
|
|
ErrorBadAllocation.h
|
|
|
|
ErrorBadType.h
|
|
|
|
ErrorBadValue.h
|
2014-02-10 19:53:03 +00:00
|
|
|
ErrorExecution.h
|
2017-01-09 21:15:32 +00:00
|
|
|
ErrorInternal.h
|
2015-05-29 14:49:57 +00:00
|
|
|
Field.h
|
2017-03-29 16:11:09 +00:00
|
|
|
ImplicitFunction.h
|
2015-12-23 19:54:41 +00:00
|
|
|
RuntimeDeviceInformation.h
|
2017-02-22 20:33:52 +00:00
|
|
|
RuntimeDeviceTracker.h
|
2014-06-23 23:33:04 +00:00
|
|
|
Storage.h
|
|
|
|
StorageBasic.h
|
|
|
|
StorageImplicit.h
|
|
|
|
StorageListTag.h
|
2014-06-10 18:53:34 +00:00
|
|
|
Timer.h
|
2016-08-15 23:15:17 +00:00
|
|
|
TryExecute.h
|
2017-03-29 14:48:43 +00:00
|
|
|
VirtualObjectCache.h
|
2014-02-10 19:53:03 +00:00
|
|
|
)
|
|
|
|
|
2016-12-16 22:04:58 +00:00
|
|
|
set(header_impls
|
|
|
|
ArrayHandle.hxx
|
|
|
|
CellSetStructured.hxx
|
2017-03-29 16:11:09 +00:00
|
|
|
ImplicitFunction.hxx
|
2016-12-19 13:58:12 +00:00
|
|
|
StorageBasic.hxx
|
2016-12-16 22:04:58 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sources
|
|
|
|
ArrayHandle.cxx
|
|
|
|
CellSet.cxx
|
|
|
|
CellSetStructured.cxx
|
|
|
|
CoordinateSystem.cxx
|
|
|
|
DynamicArrayHandle.cxx
|
|
|
|
Field.cxx
|
2017-03-29 16:11:09 +00:00
|
|
|
ImplicitFunction.cxx
|
2016-12-16 22:04:58 +00:00
|
|
|
internal/SimplePolymorphicContainer.cxx
|
2016-12-19 13:58:12 +00:00
|
|
|
StorageBasic.cxx
|
2016-12-16 22:04:58 +00:00
|
|
|
)
|
|
|
|
|
2017-02-22 23:18:23 +00:00
|
|
|
# This list of sources has code that uses devices and so might need to be
|
|
|
|
# compiled with a device-specific compiler (like CUDA).
|
|
|
|
set(device_sources
|
2017-02-24 00:12:14 +00:00
|
|
|
ArrayRangeCompute.cxx
|
2017-02-22 23:18:23 +00:00
|
|
|
RuntimeDeviceTracker.cxx
|
|
|
|
)
|
|
|
|
|
2016-09-12 14:30:03 +00:00
|
|
|
vtkm_declare_headers(${headers})
|
|
|
|
|
2014-02-10 19:53:03 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
add_subdirectory(internal)
|
2014-10-14 16:44:48 +00:00
|
|
|
add_subdirectory(arg)
|
2014-02-10 19:53:03 +00:00
|
|
|
|
2016-09-28 15:38:31 +00:00
|
|
|
add_subdirectory(serial)
|
2017-04-05 22:45:01 +00:00
|
|
|
set(sources ${sources} $<TARGET_OBJECTS:vtkm_cont_serial>)
|
|
|
|
|
2016-09-12 14:30:03 +00:00
|
|
|
add_subdirectory(tbb)
|
|
|
|
if (VTKm_ENABLE_TBB)
|
|
|
|
set(sources ${sources} $<TARGET_OBJECTS:vtkm_cont_tbb>)
|
|
|
|
endif()
|
|
|
|
|
2015-09-17 13:23:53 +00:00
|
|
|
add_subdirectory(cuda)
|
2017-04-05 22:45:01 +00:00
|
|
|
if (VTKm_ENABLE_CUDA)
|
2017-03-06 14:41:40 +00:00
|
|
|
get_property(vtkm_cont_cuda_object_files GLOBAL
|
|
|
|
PROPERTY vtkm_cont_cuda_object_files )
|
|
|
|
# mark the file as generated, this needs to be done in this directory
|
|
|
|
# for 'reasons'.
|
|
|
|
set_source_files_properties(${vtkm_cont_cuda_object_files}
|
|
|
|
PROPERTIES GENERATED TRUE)
|
|
|
|
|
|
|
|
set(sources ${sources} ${vtkm_cont_cuda_object_files})
|
2017-04-05 22:45:01 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vtkm_library(
|
|
|
|
SOURCES ${sources}
|
|
|
|
WRAP_FOR_CUDA ${device_sources}
|
|
|
|
HEADERS ${header_impls})
|
|
|
|
target_include_directories(vtkm_cont PRIVATE ${VTKm_BACKEND_INCLUDE_DIRS})
|
2014-02-10 19:53:03 +00:00
|
|
|
|
2017-03-06 14:41:40 +00:00
|
|
|
if(VTKm_ENABLE_CUDA)
|
|
|
|
add_dependencies(vtkm_cont vtkm_cont_cuda)
|
|
|
|
endif()
|
|
|
|
|
2014-02-10 19:53:03 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
2016-10-21 19:10:49 +00:00
|
|
|
add_subdirectory(testing)
|