mirror of https://github.com/FreeRDP/FreeRDP
Added libusb detection for windows.
This commit is contained in:
parent
82a9008841
commit
197a5ccd8c
|
@ -49,18 +49,20 @@ if (LIBUSB_1_LIBRARIES AND LIBUSB_1_INCLUDE_DIRS)
|
||||||
else (LIBUSB_1_LIBRARIES AND LIBUSB_1_INCLUDE_DIRS)
|
else (LIBUSB_1_LIBRARIES AND LIBUSB_1_INCLUDE_DIRS)
|
||||||
find_path(LIBUSB_1_INCLUDE_DIR
|
find_path(LIBUSB_1_INCLUDE_DIR
|
||||||
NAMES
|
NAMES
|
||||||
libusb.h
|
libusb.h
|
||||||
PATHS
|
PATHS
|
||||||
/usr/include
|
/usr/include
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
/sw/include
|
/sw/include
|
||||||
PATH_SUFFIXES
|
PATH_SUFFIXES
|
||||||
libusb-1.0
|
libusb-1.0
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library(LIBUSB_1_LIBRARY
|
find_library(LIBUSB_1_LIBRARY
|
||||||
NAMES
|
NAMES
|
||||||
usb-1.0 usb
|
libusb-1.0
|
||||||
|
usb-1.0
|
||||||
|
usb
|
||||||
PATHS
|
PATHS
|
||||||
/usr/lib
|
/usr/lib
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
|
@ -81,8 +83,8 @@ libusb-1.0
|
||||||
if (LIBUSB_1_FOUND)
|
if (LIBUSB_1_FOUND)
|
||||||
if (NOT libusb_1_FIND_QUIETLY)
|
if (NOT libusb_1_FIND_QUIETLY)
|
||||||
message(STATUS "Found libusb-1.0:")
|
message(STATUS "Found libusb-1.0:")
|
||||||
message(STATUS " - Includes: ${LIBUSB_1_INCLUDE_DIRS}")
|
message(STATUS " - Includes: ${LIBUSB_1_INCLUDE_DIRS}")
|
||||||
message(STATUS " - Libraries: ${LIBUSB_1_LIBRARIES}")
|
message(STATUS " - Libraries: ${LIBUSB_1_LIBRARIES}")
|
||||||
endif (NOT libusb_1_FIND_QUIETLY)
|
endif (NOT libusb_1_FIND_QUIETLY)
|
||||||
else (LIBUSB_1_FOUND)
|
else (LIBUSB_1_FOUND)
|
||||||
if (libusb_1_FIND_REQUIRED)
|
if (libusb_1_FIND_REQUIRED)
|
||||||
|
|
Loading…
Reference in New Issue