diff --git a/CMakeLists.txt b/CMakeLists.txt index 720131a4c8..d8aa57e468 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/Externals/hidapi/windows/CMakeLists.txt b/Externals/hidapi/windows/CMakeLists.txt new file mode 100644 index 0000000000..3b0b4ce5fa --- /dev/null +++ b/Externals/hidapi/windows/CMakeLists.txt @@ -0,0 +1 @@ +add_library(hidapi-hid hid.c)