0030694: Data Exchange - support non-standard GB2312-encoded STEP files
[occt.git] / adm / cmake / opencl.cmake
1 #OpenCl
2
3 SET (3RDPARTY_OPENCL_ADDITIONAL_PATH_FOR_HEADER $ENV{AMDAPPSDKROOT}/include
4                                                   $ENV{INTELOCLSDKROOT}/include
5                                                   $ENV{NVSDKCOMPUTE_ROOT}/OpenCL/common/inc
6                                                   $ENV{ATISTREAMSDKROOT}/include)
7
8
9 IF(${COMPILER_BITNESS} STREQUAL 32)
10   SET (3RDPARTY_OPENCL_ADDITIONAL_PATH_FOR_LIB $ENV{AMDAPPSDKROOT}/lib/x86
11                                                $ENV{INTELOCLSDKROOT}/lib/x86
12                                                $ENV{NVSDKCOMPUTE_ROOT}/OpenCL/common/lib/Win32
13                                                $ENV{ATISTREAMSDKROOT}/lib/x86)
14 ELSEIF(${COMPILER_BITNESS} STREQUAL 64)
15   SET (3RDPARTY_OPENCL_ADDITIONAL_PATH_FOR_LIB $ENV{AMDAPPSDKROOT}/lib/x86_64
16                                                $ENV{INTELOCLSDKROOT}/lib/x64
17                                                $ENV{NVSDKCOMPUTE_ROOT}/OpenCL/common/lib/x64
18                                                $ENV{ATISTREAMSDKROOT}/lib/x86_64)
19 ENDIF()
20
21 THIRDPARTY_PRODUCT("OPENCL" "CL/cl.h" "OpenCL" "OpenCLd")
22
23 # if CL/cl.h isn't found (and 3RDPARTY_OPENCL_INCLUDE_DIR isn't defined)
24 # then try to find OpenCL/cl.h (all other variable won't be changed)
25 IF(NOT 3RDPARTY_OPENCL_INCLUDE_DIR OR NOT EXISTS "${3RDPARTY_OPENCL_INCLUDE_DIR}")
26   THIRDPARTY_PRODUCT("OPENCL" "OpenCL/cl.h" "OpenCL" "OpenCLd")
27 ENDIF()