rpavlik/vrjuggler — pull request #5 by godbyk (2012-10-22 18:52:10+00:00)
Title: The libusb 1.0 include dir was not in the search path.

libusb 1.0 is required by the VRPN Gadgeteer driver (assuming VRPN was compiled with libusb1.0). Gadgeteer fails to compile the VRPN driver because the libusb.h file lives in /usr/include/libusb1.0/ which isn't among the include directories searched by the compiler.

I added the FindLibusb1.cmake script from the VRPN project and used it to find libusb.h and add its include path to the list searched.

A better solution would check to see if libusb is required by VRPN. If it's not required, this code may be ignored. These checks should live in the FindVRPN.cmake script.