1
0
Fork 0

Hopefully fix FreeBSD joystick support

This commit is contained in:
James Turner 2018-05-17 19:45:50 +01:00
parent b64f04a7d8
commit 87e461bb7e

View file

@ -34,6 +34,9 @@ elseif(WIN32)
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
# no libs here?
elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
set_target_properties(PLIBJoystick PROPERTIES
COMPILE_DEFINITIONS "HAVE_USBHID_H")
target_include_directories(PLIBJoystick PRIVATE ${USBHID_INCLUDE_DIR})
target_link_libraries(PLIBJoystick ${USBHID_LIBRARY})
else()
# other / none platform