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:
parent
ba471db647
commit
826784eb18
2 changed files with 8 additions and 4 deletions
|
@ -71,6 +71,7 @@ endif()
|
|||
|
||||
if(EVENT_INPUT)
|
||||
message(STATUS "checking event-based Input")
|
||||
find_package(DBus)
|
||||
IF(APPLE)
|
||||
|
||||
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
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
|
||||
|
@ -18,6 +20,7 @@ set(SOURCES
|
|||
|
||||
if(EVENT_INPUT)
|
||||
list(APPEND SOURCES ${EVENT_INPUT_SOURCES})
|
||||
include_directories(${DBUS_INCLUDE_DIR} ${DBUS_ARCH_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
set(FGJS_SOURCES
|
||||
|
|
Loading…
Reference in a new issue