Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Support Libusb1 on windows #46

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

agirault
Copy link
Contributor

Libusb-1.0 - #42

Improve Findlibusb-1.0

  • search for libusb.h path not libusb-1.0/libusb.h (PATH_SUFFIXES helps).
  • search for usb-1.0 and libusb-1.0 as library names, the later being
    used on windows.
  • use find_package_handle_standard_args() to ensure variables are found.
    This results in a change of the cmake variables to LIBUSB1_* instead
    of LIBUSB_1_*.

Make Libusb1-0 default on Windows

Instead of LIBFTD2XX.
LibUsb1 can be easily downloaded from sourceforge and wraps the include file, libs for different platforms and generators, static and shared : https://sourceforge.net/projects/libusb/files/libusb-1.0/

For ease of use it would possible to download, archive, and install files from libusb-1.0 within the project easily using CMake ExternalProject_Add() macro.

@agirault agirault changed the title Libusb1 windows WIP: Support Libusb1 on windows May 11, 2016
@agirault agirault mentioned this pull request May 11, 2016
@qdot
Copy link
Member

qdot commented May 11, 2016

BTW, I'm happy to add you to the org if you'd just like direct push right. :)

Alexis Girault added 2 commits May 11, 2016 14:20
1) Improve Findlibusb-1.0 :
- search for libusb.h path not libusb-1.0/libusb.h (PATH_SUFFIXES helps).
- search for usb-1.0 and libusb-1.0 as library names, the later being
used on windows.
- use find_package_handle_standard_args to ensure variables are found.
This results in a change of the camke variables to LIBUSB1_* instead
of LIBUSB_1_*.

2) Make Libusb1-0 default on Windows instead of LIBFTD2XX. LibUsb1 can
be easily downloaded from sourceforge and wraps the include file, libs
for different platforms and generators, static and shared :
https://sourceforge.net/projects/libusb/files/libusb-1.0/

For ease of use it would possible to download, archive, and install
files from libusb-1.0 easily using CMake ExternalProject_Add() macro.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants