X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=LoadFile%2FCMakeLists.txt;fp=LoadFile%2FCMakeLists.txt;h=7b5ace25d33afd8b7e05b0859b3ac73ce89d1e47;hb=c4c1d0a2b89d99d343da1735b14641c328ae5ea9;hp=5baea82e579c02dd436118bfccc87c137d9d9a26;hpb=cc3f062875ad3ced6ba577bb09a7c29909ba2937;p=kiibohd-controller.git diff --git a/LoadFile/CMakeLists.txt b/LoadFile/CMakeLists.txt index 5baea82..7b5ace2 100644 --- a/LoadFile/CMakeLists.txt +++ b/LoadFile/CMakeLists.txt @@ -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...")