cmake: Build HIDAPI on Windows
This commit is contained in:
parent
56559c51cf
commit
08d6a24bbc
|
@ -898,6 +898,10 @@ if(NOT ANDROID)
|
|||
message(STATUS "Using static hidapi-hidraw from Externals")
|
||||
add_subdirectory(Externals/hidapi/linux)
|
||||
list(APPEND LIBS hidapi-hidraw udev)
|
||||
elseif(MSVC)
|
||||
message(STATUS "Using static hidapi-hid from Externals")
|
||||
add_subdirectory(Externals/hidapi/windows)
|
||||
list(APPEND LIBS hidapi-hid)
|
||||
else()
|
||||
message(STATUS "Using static hidapi-libusb from Externals")
|
||||
add_subdirectory(Externals/hidapi/libusb)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
add_library(hidapi-hid hid.c)
|
Loading…
Reference in New Issue