Add Libusb to cmake and HID files.

This commit is contained in:
Matthew Parlane
2012-12-24 12:58:11 +13:00
parent c626d5aae3
commit d9dd94ac8b
5 changed files with 89 additions and 23 deletions

View File

@ -414,6 +414,16 @@ else(SDL2_FOUND)
endif(SDL_FOUND)
endif(SDL2_FOUND)
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
include(FindLibUSB OPTIONAL)
endif()
if(LIBUSB_FOUND)
message("Using shared LibUSB")
include_directories(${LIBUSB_INCLUDE_DIR})
else(LIBUSB_FOUND)
endif(LIBUSB_FOUND)
set(SFML_FIND_VERSION TRUE)
set(SFML_FIND_VERSION_MAJOR 1)
set(SFML_FIND_VERSION_MINOR 5)