|
|
@ -1,30 +1,16 @@ |
|
|
|
# Main variables: |
|
|
|
# Main variables: |
|
|
|
# VA_INTEL_MSDK_INCLUDE_DIR and VA_INTEL_IOCL_INCLUDE_DIR to use VA_INTEL |
|
|
|
# VA_INTEL_IOCL_INCLUDE_DIR to use VA_INTEL |
|
|
|
# HAVE_VA_INTEL for conditional compilation OpenCV with/without VA_INTEL |
|
|
|
# HAVE_VA_INTEL for conditional compilation OpenCV with/without VA_INTEL |
|
|
|
|
|
|
|
|
|
|
|
# VA_INTEL_MSDK_ROOT - root of Intel MSDK installation |
|
|
|
|
|
|
|
# VA_INTEL_IOCL_ROOT - root of Intel OCL installation |
|
|
|
# VA_INTEL_IOCL_ROOT - root of Intel OCL installation |
|
|
|
|
|
|
|
|
|
|
|
if(UNIX AND NOT ANDROID) |
|
|
|
if(UNIX AND NOT ANDROID) |
|
|
|
if($ENV{VA_INTEL_MSDK_ROOT}) |
|
|
|
|
|
|
|
set(VA_INTEL_MSDK_ROOT $ENV{VA_INTEL_MSDK_ROOT}) |
|
|
|
|
|
|
|
else() |
|
|
|
|
|
|
|
set(VA_INTEL_MSDK_ROOT "/opt/intel/mediasdk") |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($ENV{VA_INTEL_IOCL_ROOT}) |
|
|
|
if($ENV{VA_INTEL_IOCL_ROOT}) |
|
|
|
set(VA_INTEL_IOCL_ROOT $ENV{VA_INTEL_IOCL_ROOT}) |
|
|
|
set(VA_INTEL_IOCL_ROOT $ENV{VA_INTEL_IOCL_ROOT}) |
|
|
|
else() |
|
|
|
else() |
|
|
|
set(VA_INTEL_IOCL_ROOT "/opt/intel/opencl") |
|
|
|
set(VA_INTEL_IOCL_ROOT "/opt/intel/opencl") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
find_path( |
|
|
|
|
|
|
|
VA_INTEL_MSDK_INCLUDE_DIR |
|
|
|
|
|
|
|
NAMES mfxdefs.h |
|
|
|
|
|
|
|
PATHS ${VA_INTEL_MSDK_ROOT} |
|
|
|
|
|
|
|
PATH_SUFFIXES include |
|
|
|
|
|
|
|
DOC "Path to Intel MSDK headers") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find_path( |
|
|
|
find_path( |
|
|
|
VA_INTEL_IOCL_INCLUDE_DIR |
|
|
|
VA_INTEL_IOCL_INCLUDE_DIR |
|
|
|
NAMES CL/va_ext.h |
|
|
|
NAMES CL/va_ext.h |
|
|
@ -33,12 +19,14 @@ if(UNIX AND NOT ANDROID) |
|
|
|
DOC "Path to Intel OpenCL headers") |
|
|
|
DOC "Path to Intel OpenCL headers") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if(VA_INTEL_MSDK_INCLUDE_DIR AND VA_INTEL_IOCL_INCLUDE_DIR) |
|
|
|
if(VA_INTEL_IOCL_INCLUDE_DIR) |
|
|
|
set(HAVE_VA_INTEL TRUE) |
|
|
|
set(HAVE_VA_INTEL TRUE) |
|
|
|
set(VA_INTEL_LIBRARIES "-lva" "-lva-drm") |
|
|
|
if(NOT DEFINED VA_INTEL_LIBRARIES) |
|
|
|
|
|
|
|
set(VA_INTEL_LIBRARIES "va" "va-drm") |
|
|
|
|
|
|
|
endif() |
|
|
|
else() |
|
|
|
else() |
|
|
|
set(HAVE_VA_INTEL FALSE) |
|
|
|
set(HAVE_VA_INTEL FALSE) |
|
|
|
message(WARNING "Intel MSDK & OpenCL installation is not found.") |
|
|
|
message(WARNING "Intel OpenCL installation is not found.") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
mark_as_advanced(FORCE VA_INTEL_MSDK_INCLUDE_DIR VA_INTEL_IOCL_INCLUDE_DIR) |
|
|
|
mark_as_advanced(FORCE VA_INTEL_IOCL_INCLUDE_DIR) |
|
|
|