dolphin-emulator/CMakeTests/FindHIDAPI.cmake
Tillmann Karras ca0c2efe7a WiimoteReal: reimplement using HIDAPI
Using the HIDAPI library has the advantage that we get Wiimote and
DolphinBar support on all platforms with only one IO implementation.
2015-01-10 18:10:45 +01:00

9 lines
406 B
CMake

find_path(HIDAPI_INCLUDE_DIR NAMES hidapi.h PATH_SUFFIXES hidapi)
find_library(HIDAPI_LIBRARY NAMES hidapi hidapi-hidraw hidapi-libusb)
set(HIDAPI_LIBRARIES ${HIDAPI_LIBRARY})
set(HIDAPI_INCLUDE_DIRS ${HIDAPI_INCLUDE_DIR})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(HIDAPI DEFAULT_MSG HIDAPI_LIBRARY HIDAPI_INCLUDE_DIR)
mark_as_advanced(HIDAPI_INCLUDE_DIR HIDAPI_LIBRARY)