Co-authored-by: elecpower <elecpower@users.noreply.github.com> Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
25 lines
446 B
CMake
25 lines
446 B
CMake
# - try to find libusb-1 library
|
|
|
|
set(LIBUSB1_ROOT_DIR
|
|
"${LIBUSB1_ROOT_DIR}"
|
|
CACHE
|
|
PATH
|
|
"Root directory to search for libusb-1")
|
|
|
|
find_library(LIBUSB1_LIBRARY
|
|
NAMES
|
|
libusb-1.0
|
|
libusb-1.0.so
|
|
libusb-1.0.so.0
|
|
libusb-1.0.dll
|
|
libusb-1.0.dylib
|
|
HINTS
|
|
"${LIBUSB1_ROOT_DIR}")
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(LIBUSB1
|
|
DEFAULT_MSG
|
|
LIBUSB1_LIBRARY)
|
|
|
|
mark_as_advanced(LIBUSB1_LIBRARY)
|