Need to move the definition to the toplevel cmake file, since sources
are no longer compiled on directory level (individual libs per dir).
message(WARNING "UDev not found, event input is disabled!")
set(EVENT_INPUT 0)
else()
+ add_definitions(-DWITH_EVENTINPUT)
set(EVENT_INPUT_LIBRARIES ${UDEV_LIBRARIES})
message(STATUS "event-based input enabled. Using ${UDEV_LIBRARIES}")
endif()
FGJoystickInput.cxx
FGKeyboardInput.cxx
FGMouseInput.cxx
- input.cxx
+ input.cxx
)
set(HEADERS
list(APPEND SOURCES ${EVENT_INPUT_SOURCES})
list(APPEND SOURCES ${EVENT_INPUT_HEADERS})
include_directories(${UDEV_INCLUDE_DIR})
- add_definitions(-DWITH_EVENTINPUT)
endif()
set(FGJS_SOURCES