summaryrefslogtreecommitdiff
path: root/CMake/FindOCLIcd.cmake
blob: b0a8ad75af5a6a583d99f93afb5cc81cac3e85dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# Try to find ocl_icd library and include path.
# Once done this will define
#
# OCLIcd_FOUND
# OCLIcd_INCLUDE_PATH
#

FIND_PATH(OCLIcd_INCLUDE_PATH ocl_icd.h
  ~/include/
  /usr/include/
  /usr/local/include/
  /sw/include/
  /opt/local/include/
  DOC "The directory where ocl_icd.h resides")

IF(OCLIcd_INCLUDE_PATH)
  INCLUDE_DIRECTORIES(${OCLIcd_INCLUDE_PATH})
  SET(OCLIcd_FOUND 1 CACHE STRING "Set to 1 if OCLIcd is found, 0 otherwise")
ELSE(OCLIcd_INCLUDE_PATH)
  SET(OCLIcd_FOUND 0 CACHE STRING "Set to 1 if OCLIcd is found, 0 otherwise")
ENDIF(OCLIcd_INCLUDE_PATH)

MARK_AS_ADVANCED(OCLIcd_FOUND)