mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 14:24:54 +00:00
cmake: Build HIDAPI on Windows
This commit is contained in:
parent
56559c51cf
commit
08d6a24bbc
2 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
1
Externals/hidapi/windows/CMakeLists.txt
vendored
Normal file
1
Externals/hidapi/windows/CMakeLists.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
add_library(hidapi-hid hid.c)
|
Loading…
Add table
Reference in a new issue