Porting teensy-loader-cli to use libusb-1.0 (from 0.1).
- Currently only Linux tested.
This commit is contained in:
parent
a82d239efc
commit
cc3f062875
6 changed files with 113 additions and 81 deletions
|
@ -48,7 +48,7 @@ list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} ) # Use local find scripts
|
|||
#| Linux - libusb
|
||||
if( CMAKE_SYSTEM_NAME MATCHES "Linux" )
|
||||
# Find libusb (not 1.0)
|
||||
find_package( LibUSB REQUIRED )
|
||||
find_package( LibUSB-1.0 REQUIRED )
|
||||
|
||||
# Defines
|
||||
set( DEFINES -s -DUSE_LIBUSB )
|
||||
|
@ -94,7 +94,7 @@ endif()
|
|||
#
|
||||
|
||||
#| Default CFLAGS
|
||||
set( CFLAGS -O2 -Wall )
|
||||
set( CFLAGS -O2 -Wall -std=gnu99 )
|
||||
|
||||
add_definitions( ${CFLAGS} ${DEFINES} )
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue