OpenCVFindVA.cmake 511 B

123456789101112131415161718192021
  1. # Output:
  2. # HAVE_VA - libva is available
  3. # HAVE_VA_INTEL - OpenCL/libva Intel interoperability extension is available
  4. find_path(
  5. VA_INCLUDE_DIR
  6. NAMES va/va.h
  7. PATHS ${VA_ROOT_DIR}
  8. PATH_SUFFIXES include
  9. DOC "Path to libva headers"
  10. )
  11. if(VA_INCLUDE_DIR)
  12. set(HAVE_VA TRUE)
  13. if(NOT DEFINED VA_LIBRARIES AND NOT OPENCV_LIBVA_LINK)
  14. set(VA_LIBRARIES "va" "va-drm")
  15. endif()
  16. else()
  17. set(HAVE_VA FALSE)
  18. message(STATUS "libva: missing va.h header (VA_INCLUDE_DIR)")
  19. endif()