1
0
Fork 0

Martin Spott: Add CMake DBus support for event driven input.

Tested on Linux only, please improve if you see fit.
This commit is contained in:
ThorstenB 2011-06-13 00:45:40 +02:00
parent ba471db647
commit 826784eb18
2 changed files with 8 additions and 4 deletions

View file

@ -71,6 +71,7 @@ endif()
if(EVENT_INPUT) if(EVENT_INPUT)
message(STATUS "checking event-based Input") message(STATUS "checking event-based Input")
find_package(DBus)
IF(APPLE) IF(APPLE)
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")

View file

@ -1,9 +1,11 @@
include(FlightGearComponent) include(FlightGearComponent)
set(EVENT_INPUT_SOURCES IF(APPLE)
FGLinuxEventInput.cxx set(EVENT_INPUT_SOURCES FGMacOSXEventInput.cxx)
FGMacOSXEventInput.cxx else()
) set(EVENT_INPUT_SOURCES FGLinuxEventInput.cxx)
endif()
set(SOURCES set(SOURCES
FGButton.cxx FGButton.cxx
@ -18,6 +20,7 @@ set(SOURCES
if(EVENT_INPUT) if(EVENT_INPUT)
list(APPEND SOURCES ${EVENT_INPUT_SOURCES}) list(APPEND SOURCES ${EVENT_INPUT_SOURCES})
include_directories(${DBUS_INCLUDE_DIR} ${DBUS_ARCH_INCLUDE_DIR})
endif() endif()
set(FGJS_SOURCES set(FGJS_SOURCES