mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
Merge pull request #1718 from SpecLad:have-opencv-ocl
This commit is contained in:
commit
2f4d68c746
@ -499,7 +499,7 @@ macro(ocv_glob_module_sources)
|
|||||||
source_group("Src" FILES ${lib_srcs} ${lib_int_hdrs})
|
source_group("Src" FILES ${lib_srcs} ${lib_int_hdrs})
|
||||||
|
|
||||||
file(GLOB cl_kernels "src/opencl/*.cl")
|
file(GLOB cl_kernels "src/opencl/*.cl")
|
||||||
if(HAVE_OPENCL AND cl_kernels)
|
if(HAVE_opencv_ocl AND cl_kernels)
|
||||||
ocv_include_directories(${OPENCL_INCLUDE_DIRS})
|
ocv_include_directories(${OPENCL_INCLUDE_DIRS})
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/opencl_kernels.cpp" "${CMAKE_CURRENT_BINARY_DIR}/opencl_kernels.hpp"
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/opencl_kernels.cpp" "${CMAKE_CURRENT_BINARY_DIR}/opencl_kernels.hpp"
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#include "perf_precomp.hpp"
|
#include "perf_precomp.hpp"
|
||||||
|
|
||||||
#ifdef HAVE_OPENCL
|
#ifdef HAVE_OPENCV_OCL
|
||||||
|
|
||||||
#include "opencv2/ocl/ocl.hpp"
|
#include "opencv2/ocl/ocl.hpp"
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@ -49,7 +49,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
|
|||||||
target_link_libraries(${the_target} opencv_nonfree)
|
target_link_libraries(${the_target} opencv_nonfree)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_OPENCL)
|
if(HAVE_opencv_ocl)
|
||||||
target_link_libraries(${the_target} opencv_ocl)
|
target_link_libraries(${the_target} opencv_ocl)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user