mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
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")
|
message(STATUS "Using static hidapi-hidraw from Externals")
|
||||||
add_subdirectory(Externals/hidapi/linux)
|
add_subdirectory(Externals/hidapi/linux)
|
||||||
list(APPEND LIBS hidapi-hidraw udev)
|
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()
|
else()
|
||||||
message(STATUS "Using static hidapi-libusb from Externals")
|
message(STATUS "Using static hidapi-libusb from Externals")
|
||||||
add_subdirectory(Externals/hidapi/libusb)
|
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…
x
Reference in New Issue
Block a user