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