Tested on Linux only, please improve if you see fit.
if(EVENT_INPUT)
message(STATUS "checking event-based Input")
+ find_package(DBus)
IF(APPLE)
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
include(FlightGearComponent)
-set(EVENT_INPUT_SOURCES
- FGLinuxEventInput.cxx
- FGMacOSXEventInput.cxx
- )
+IF(APPLE)
+ set(EVENT_INPUT_SOURCES FGMacOSXEventInput.cxx)
+else()
+ set(EVENT_INPUT_SOURCES FGLinuxEventInput.cxx)
+endif()
+
set(SOURCES
FGButton.cxx
if(EVENT_INPUT)
list(APPEND SOURCES ${EVENT_INPUT_SOURCES})
+ include_directories(${DBUS_INCLUDE_DIR} ${DBUS_ARCH_INCLUDE_DIR})
endif()
set(FGJS_SOURCES