2 # VA_INTEL_MSDK_INCLUDE_DIR and VA_INTEL_IOCL_INCLUDE_DIR to use VA_INTEL
3 # HAVE_VA_INTEL for conditional compilation OpenCV with/without VA_INTEL
5 # VA_INTEL_MSDK_ROOT - root of Intel MSDK installation
6 # VA_INTEL_IOCL_ROOT - root of Intel OCL installation
8 if(UNIX AND NOT ANDROID)
9 if($ENV{VA_INTEL_MSDK_ROOT})
10 set(VA_INTEL_MSDK_ROOT $ENV{VA_INTEL_MSDK_ROOT})
12 set(VA_INTEL_MSDK_ROOT "/opt/intel/mediasdk")
15 if($ENV{VA_INTEL_IOCL_ROOT})
16 set(VA_INTEL_IOCL_ROOT $ENV{VA_INTEL_IOCL_ROOT})
18 set(VA_INTEL_IOCL_ROOT "/opt/intel/opencl")
22 VA_INTEL_MSDK_INCLUDE_DIR
24 PATHS ${VA_INTEL_MSDK_ROOT}
26 DOC "Path to Intel MSDK headers")
29 VA_INTEL_IOCL_INCLUDE_DIR
31 PATHS ${VA_INTEL_IOCL_ROOT}
33 DOC "Path to Intel OpenCL headers")
36 if(VA_INTEL_MSDK_INCLUDE_DIR AND VA_INTEL_IOCL_INCLUDE_DIR)
37 set(HAVE_VA_INTEL TRUE)
38 set(VA_INTEL_LIBRARIES "-lva" "-lva-drm")
40 set(HAVE_VA_INTEL FALSE)
41 message(WARNING "Intel MSDK & OpenCL installation is not found.")
44 mark_as_advanced(FORCE VA_INTEL_MSDK_INCLUDE_DIR VA_INTEL_IOCL_INCLUDE_DIR)