mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 02:29:59 -06:00
Externals/hidapi: Convert to submodule
This also updates to 0.14.0 (d3013f0af3
)
This commit is contained in:

committed by
Admiral H. Curtiss

parent
8482a50154
commit
12fe5550d2
12
Externals/hidapi/CMakeLists.txt
vendored
12
Externals/hidapi/CMakeLists.txt
vendored
@ -1,20 +1,20 @@
|
||||
project(hidapi)
|
||||
|
||||
add_library(hidapi STATIC hidapi/hidapi.h)
|
||||
add_library(hidapi STATIC hidapi-src/hidapi/hidapi.h)
|
||||
dolphin_disable_warnings_msvc(hidapi)
|
||||
target_include_directories(hidapi PUBLIC hidapi)
|
||||
target_include_directories(hidapi PUBLIC hidapi-src/hidapi)
|
||||
|
||||
if(APPLE)
|
||||
target_sources(hidapi PRIVATE mac/hid.c)
|
||||
target_sources(hidapi PRIVATE hidapi-src/mac/hid.c)
|
||||
elseif(MSVC)
|
||||
target_sources(hidapi PRIVATE windows/hid.c)
|
||||
target_sources(hidapi PRIVATE hidapi-src/windows/hid.c)
|
||||
else()
|
||||
find_package(LIBUDEV)
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND LIBUDEV_FOUND)
|
||||
target_sources(hidapi PRIVATE linux/hid.c)
|
||||
target_sources(hidapi PRIVATE hidapi-src/linux/hid.c)
|
||||
target_link_libraries(hidapi PRIVATE udev)
|
||||
else()
|
||||
target_sources(hidapi PRIVATE libusb/hid.c)
|
||||
target_sources(hidapi PRIVATE hidapi-src/libusb/hid.c)
|
||||
target_link_libraries(hidapi PRIVATE ${LIBUSB_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user