CMakeLists.txt 779 Bytes
Newer Older
1 2
SET (_HDRS CudaBase.cuh)
SET (_SRCS CudaBase.cu)
Uldis Locans's avatar
Uldis Locans committed
3

4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
IF (ENABLE_OPAL)
  SET (_HDRS ${_HDRS} CudaFFT.cuh CudaGreensFunction.cuh CudaCollimatorPhysics.cuh)
  SET (_SRCS ${_SRCS} CudaFFT.cu CudaGreensFunction.cu CudaCollimatorPhysics.cu)
ENDIF (ENABLE_OPAL)

IF (ENABLE_MUSR)
  SET (_HDRS ${_HDRS} CudaChiSquareRuntime.cuh)
  SET (_SRCS ${_SRCS} CudaChiSquareRuntime.cu)
  SET (_KERNELS NVRTCKernels/CudaChiSquareKernel.cu)
ENDIF (ENABLE_MUSR)

IF (ENABLE_PET)
  SET (_HDRS ${_HDRS} CudaImageReconstruction.cuh)
  SET (_SRCS ${_SRCS} CudaImageReconstruction.cu)
ENDIF (ENABLE_PET)
Uldis Locans's avatar
Uldis Locans committed
19

20 21
MESSAGE (STATUS "CUDA headers: ${_HDRS}")

Uldis Locans's avatar
Uldis Locans committed
22 23 24 25 26 27
ADD_SOURCES(${_SRCS})
ADD_HEADERS(${_HDRS})

INSTALL(FILES ${_HDRS} DESTINATION include/CUDA)
INSTALL(FILES ${_KERNELS} DESTINATION include/CUDA/NVRTCKernels)