2015-08-31 01:33:15 +02:00
|
|
|
# Main variables:
|
|
|
|
# HAVE_VA for conditional compilation OpenCV with/without libva
|
|
|
|
|
|
|
|
if(UNIX AND NOT ANDROID)
|
|
|
|
find_path(
|
|
|
|
VA_INCLUDE_DIR
|
|
|
|
NAMES va/va.h
|
|
|
|
PATHS "/usr/include"
|
|
|
|
PATH_SUFFIXES include
|
|
|
|
DOC "Path to libva headers")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(VA_INCLUDE_DIR)
|
|
|
|
set(HAVE_VA TRUE)
|
2015-09-18 01:25:49 +02:00
|
|
|
set(VA_LIBRARIES "-lva" "-lva-drm")
|
2015-08-31 01:33:15 +02:00
|
|
|
else()
|
|
|
|
set(HAVE_VA FALSE)
|
|
|
|
message(WARNING "libva installation is not found.")
|
|
|
|
endif()
|