-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindVOpenCL.cmake
32 lines (24 loc) · 1.03 KB
/
FindVOpenCL.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: FindVOPENCL.cmake 21620 2011-05-30 10:28:48Z cn276793 $
include( FindPackageHandleStandardArgs )
include( VistaFindUtils )
include( VistaHWArchSettings )
if( NOT VOPENCL_FOUND )
# cl.h marks the cl distribution
vista_find_package_root( OpenCL include/CL/cl.h )
if( OPENCL_ROOT_DIR )
#Provide specific libraries for release and debug build here
set( OPENCL_LIBRARIES
optimized OpenCL
debug OpenCL #vendor does not supply debug version
)
set( OPENCL_INCLUDE_DIRS ${OPENCL_ROOT_DIR}/include )
# Set platform specific OpenCL path here
if( UNIX ) #UNIX is easy, as usual
set( OPENCL_LIBRARY_DIRS ${OPENCL_ROOT_DIR}/lib )
elseif(WIN32)
set( OPENCL_LIBRARY_DIRS ${OPENCL_ROOT_DIR}/lib)
#message( ${OPENCL_ROOT_DIR}/lib)
endif(UNIX)
endif( OPENCL_ROOT_DIR )
endif( NOT VOPENCL_FOUND )
find_package_handle_standard_args( VOPENCL "OPENCL could not be found" OPENCL_ROOT_DIR )