list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})

# If find_package called with REQUIRED or QUIET we need to
# forward down it
unset(extraArgs)
if(${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
  list(APPEND extraArgs QUIET)
endif()
if(${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED)
  list(APPEND extraArgs REQUIRED)
endif()

find_package(JpegPkg ${extraArgs})
find_package(LibUSB ${extraArgs})
include("${CMAKE_CURRENT_LIST_DIR}/libuvcTargets.cmake")

set(libuvc_FOUND TRUE)
get_target_property(libuvc_INCLUDE_DIRS LibUVC::UVCShared INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(libuvc_LIBRARIES LibUVC::UVCShared IMPORTED_LOCATION_RELEASE)
