Add better FindLibUsb support for MacOSX.

Make LibUSB optional, don't compile HID support if it doesn't exist.
A lot less hacky. Works quite well on Ubuntu now.
This commit is contained in:
Matthew Parlane
2012-12-30 16:57:37 +13:00
parent 13bd235c11
commit 3b459fb500
6 changed files with 85 additions and 80 deletions

View File

@ -16,6 +16,7 @@ if (NOT LIBUSB_FOUND)
${LIBUSB_PKG_INCLUDE_DIRS}
/usr/include/libusb-1.0
/usr/include
/usr/local/include/libusb-1.0
/usr/local/include
)