CMakeLists.txt 1.14 KB
Newer Older
1
#dont include FFT, GreensFunction and CollimatorPhysics if clFFT and clRNG not found
Uldis Locans's avatar
Uldis Locans committed
2

3 4 5 6
SET (_HDRS OpenCLBase.h)
SET (_SRCS OpenCLBase.cpp)
SET (_KERNELS "")

7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
IF (ENABLE_AMD)
  SET (_SRCS
    ${_SRCS}
    OpenCLFFT.cpp
    )

  SET (_HDRS
    ${_HDRS}
    OpenCLFFT.h
    )

  SET (_KERNELS
    ${_KERNELS}
    OpenCLKernels/OpenCLFFT.cl
    OpenCLKernels/OpenCLFFTStockham.cl
    OpenCLKernels/OpenCLTranspose.cl
  )
ENDIF (ENABLE_AMD)

26 27 28 29 30 31 32
IF (ENABLE_MUSR)
  SET (_HDRS ${_HDRS} OpenCLChiSquareRuntime.h)
  SET (_SRCS ${_SRCS} OpenCLChiSquareRuntime.cpp)
  SET (_KERNELS OpenCLKernels/OpenCLChiSquareRuntime.cl)
ENDIF (ENABLE_MUSR)

IF (ENABLE_AMD AND ENABLE_OPAL)
33
  SET (_SRCS
34
    ${_SRCS}
35 36 37 38 39
    OpenCLCollimatorPhysics.cpp
    OpenCLGreensFunction.cpp
    )

  SET (_HDRS
40
    ${_HDRS}
41 42 43
    OpenCLCollimatorPhysics.h
    OpenCLGreensFunction.h
    )
Uldis Locans's avatar
Uldis Locans committed
44

45 46 47 48
  SET (_KERNELS
    ${_KERNELS}
    OpenCLKernels/OpenCLCollimatorPhysics.cl
    OpenCLKernels/OpenCLGreensFunction.cl
Uldis Locans's avatar
Uldis Locans committed
49
  )
50
ENDIF (ENABLE_AMD AND ENABLE_OPAL)
Uldis Locans's avatar
Uldis Locans committed
51 52 53 54 55 56

ADD_SOURCES (${_SRCS})
ADD_HEADERS (${_HDRS})

INSTALL(FILES ${_HDRS} DESTINATION include/OpenCL)
INSTALL(FILES ${_KERNELS} DESTINATION include/OpenCL/OpenCLKernels)