1
0
Fork 0

Make HID-Input test also conditional

Forgot to wrap this in the relevant CMake test, causing non-HID-input
builds to erroneously fail.
This commit is contained in:
James Turner 2017-12-18 18:22:44 +00:00
parent e920dc7509
commit e630bc4be7

View file

@ -70,12 +70,14 @@ if(ENABLE_JS_DEMO)
install(TARGETS js_demo RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
if (COMMAND flightgear_test)
if (ENABLE_HID_INPUT)
if (COMMAND flightgear_test)
set(HID_INPUT_TEST_SOURCES test_hidinput.cxx FGEventInput.cxx
FGCommonInput.cxx FGDEviceConfigurationMap.cxx)
flightgear_test(hidinput "${HID_INPUT_TEST_SOURCES}")
target_link_libraries(hidinput ${EVENT_INPUT_LIBRARIES} hidapi)
endif()
endif()
flightgear_component(Input "${SOURCES}" "${HEADERS}")