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