Windows is now working with libusb1.0 for the teensy-loader-cli.

- Not tested yet, but should be working.
This commit is contained in:
Jacob Alexander 2014-04-18 13:16:47 -07:00
parent cc3f062875
commit c4c1d0a2b8
4 changed files with 10 additions and 171 deletions

View file

@ -45,8 +45,8 @@ set( SRCS
#
list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} ) # Use local find scripts
#| Linux - libusb
if( CMAKE_SYSTEM_NAME MATCHES "Linux" )
#| Linux/Windows - libusb
if( CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "CYGWIN" )
# Find libusb (not 1.0)
find_package( LibUSB-1.0 REQUIRED )
@ -59,16 +59,6 @@ if( CMAKE_SYSTEM_NAME MATCHES "Linux" )
# Libraries
set( LIBS ${LIBUSB_LIBRARIES} )
#| Windows
elseif( CMAKE_SYSTEM_NAME MATCHES "CYGWIN" )
message( AUTHOR_WARNING "Not Tested...")
# Defines
set( DEFINES -s -DUSE_WIN32 )
# Libraries
set( LIBS hid setupapi )
#| Mac OS X
elseif( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
message( AUTHOR_WARNING "Not Tested...")