vtk-m/vtkm/cont/cuda/internal/CMakeLists.txt

41 lines
1.3 KiB
CMake
Raw Permalink Normal View History

##============================================================================
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt for details.
2019-04-15 23:24:21 +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.
##============================================================================
set(headers
CudaAllocator.h
DeviceAdapterAlgorithmCuda.h
DeviceAdapterMemoryManagerCuda.h
DeviceAdapterRuntimeDetectorCuda.h
DeviceAdapterTagCuda.h
DeviceAdapterTimerImplementationCuda.h
MakeThrustIterator.h
2021-05-26 19:43:36 +00:00
RuntimeDeviceConfigurationCuda.h
2020-06-16 12:54:01 +00:00
ScopedCudaStackSize.h
ThrustExceptionHandler.h
)
vtkm_declare_headers(${headers})
2022-12-09 23:46:56 +00:00
if (TARGET vtkm_cuda)
2019-01-09 15:04:34 +00:00
target_sources(vtkm_cont PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/CudaAllocator.cu
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterAlgorithmCuda.cu
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterMemoryManagerCuda.cu
2019-01-09 15:04:34 +00:00
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterRuntimeDetectorCuda.cu
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterTimerImplementationCuda.cu
)
else()
#build the file with cpp compiler if cuda is disabled
target_sources(vtkm_cont PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterRuntimeDetectorCuda.cxx
)
endif()