2015-08-31 07:33:15 +08:00
|
|
|
# Main variables:
|
2018-09-13 17:46:06 +08:00
|
|
|
# VA_INTEL_IOCL_INCLUDE_DIR to use VA_INTEL
|
2015-08-31 07:33:15 +08:00
|
|
|
# HAVE_VA_INTEL for conditional compilation OpenCV with/without VA_INTEL
|
|
|
|
|
|
|
|
# VA_INTEL_IOCL_ROOT - root of Intel OCL installation
|
|
|
|
|
|
|
|
if(UNIX AND NOT ANDROID)
|
2020-04-10 20:23:13 +08:00
|
|
|
ocv_check_environment_variables(VA_INTEL_IOCL_ROOT)
|
|
|
|
if(NOT DEFINED VA_INTEL_IOCL_ROOT)
|
|
|
|
set(VA_INTEL_IOCL_ROOT "/opt/intel/opencl")
|
2015-08-31 07:33:15 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
find_path(
|
|
|
|
VA_INTEL_IOCL_INCLUDE_DIR
|
|
|
|
NAMES CL/va_ext.h
|
|
|
|
PATHS ${VA_INTEL_IOCL_ROOT}
|
|
|
|
PATH_SUFFIXES include
|
|
|
|
DOC "Path to Intel OpenCL headers")
|
|
|
|
endif()
|
|
|
|
|
2018-09-13 17:46:06 +08:00
|
|
|
if(VA_INTEL_IOCL_INCLUDE_DIR)
|
2015-08-31 07:33:15 +08:00
|
|
|
set(HAVE_VA_INTEL TRUE)
|
2018-09-13 17:46:06 +08:00
|
|
|
if(NOT DEFINED VA_INTEL_LIBRARIES)
|
|
|
|
set(VA_INTEL_LIBRARIES "va" "va-drm")
|
|
|
|
endif()
|
2015-08-31 07:33:15 +08:00
|
|
|
else()
|
|
|
|
set(HAVE_VA_INTEL FALSE)
|
2018-09-13 17:46:06 +08:00
|
|
|
message(WARNING "Intel OpenCL installation is not found.")
|
2015-08-31 07:33:15 +08:00
|
|
|
endif()
|
|
|
|
|
2018-09-13 17:46:06 +08:00
|
|
|
mark_as_advanced(FORCE VA_INTEL_IOCL_INCLUDE_DIR)
|