Merge pull request #5318 from ligfx/cmakehidapi

CMake: clean up HIDAPI build
This commit is contained in:
Mat M
2017-05-03 19:54:06 -04:00
committed by GitHub
63 changed files with 34 additions and 4619 deletions

View File

@ -343,8 +343,10 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
endif()
endif()
if(HIDAPI_FOUND)
if(TARGET Hidapi::Hidapi)
set(SRCS ${SRCS} HW/WiimoteReal/IOhidapi.cpp)
list(APPEND LIBS Hidapi::Hidapi)
add_definitions(-DHAVE_HIDAPI=1)
endif()
if(PORTAUDIO_FOUND)