2020-09-11 18:29:31 +08:00
|
|
|
# Output:
|
|
|
|
# HAVE_VA - libva is available
|
|
|
|
# HAVE_VA_INTEL - OpenCL/libva Intel interoperability extension is available
|
2015-08-31 07:33:15 +08:00
|
|
|
|
|
|
|
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)
|
2018-08-10 21:00:53 +08:00
|
|
|
if(NOT DEFINED VA_LIBRARIES)
|
|
|
|
set(VA_LIBRARIES "va" "va-drm")
|
|
|
|
endif()
|
2015-08-31 07:33:15 +08:00
|
|
|
else()
|
|
|
|
set(HAVE_VA FALSE)
|
|
|
|
message(WARNING "libva installation is not found.")
|
|
|
|
endif()
|