2012-07-17 01:08:14 +08:00
|
|
|
if(NOT HAVE_OPENCL)
|
|
|
|
ocv_module_disable(ocl)
|
2013-08-07 16:53:48 +08:00
|
|
|
return()
|
2012-07-17 01:08:14 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
set(the_description "OpenCL-accelerated Computer Vision")
|
2013-10-11 02:56:19 +08:00
|
|
|
ocv_define_module(ocl opencv_core opencv_imgproc opencv_features2d opencv_objdetect opencv_video opencv_calib3d opencv_ml "${OPENCL_LIBRARIES}")
|
2013-12-12 23:59:22 +08:00
|
|
|
if(TARGET opencv_test_ocl)
|
|
|
|
target_link_libraries(opencv_test_ocl "${OPENCL_LIBRARIES}")
|
|
|
|
endif()
|
2013-11-22 22:24:50 +08:00
|
|
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wshadow)
|