2010-11-30 10:08:30 +00:00
|
|
|
include(FlightGearComponent)
|
|
|
|
|
2011-06-13 00:45:40 +02:00
|
|
|
IF(APPLE)
|
|
|
|
set(EVENT_INPUT_SOURCES FGMacOSXEventInput.cxx)
|
2011-09-21 17:13:13 +01:00
|
|
|
set(EVENT_INPUT_HEADERS FGMacOSXEventInput.hxx)
|
|
|
|
else(MSVC)
|
|
|
|
message(STATUS "EventInput not implemented for Windows yet")
|
2011-06-13 00:45:40 +02:00
|
|
|
else()
|
|
|
|
set(EVENT_INPUT_SOURCES FGLinuxEventInput.cxx)
|
2011-09-21 17:13:13 +01:00
|
|
|
set(EVENT_INPUT_HEADERS FGLinuxEventInput.hxx)
|
2011-06-13 00:45:40 +02:00
|
|
|
endif()
|
|
|
|
|
2010-11-30 10:08:30 +00:00
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
FGButton.cxx
|
|
|
|
FGCommonInput.cxx
|
|
|
|
FGDeviceConfigurationMap.cxx
|
|
|
|
FGEventInput.cxx
|
|
|
|
FGJoystickInput.cxx
|
|
|
|
FGKeyboardInput.cxx
|
|
|
|
FGMouseInput.cxx
|
2011-01-14 22:37:39 +01:00
|
|
|
input.cxx
|
2010-11-30 10:08:30 +00:00
|
|
|
)
|
2011-01-14 22:37:39 +01:00
|
|
|
|
2011-09-15 09:54:00 +01:00
|
|
|
set(HEADERS
|
|
|
|
FGButton.hxx
|
|
|
|
FGCommonInput.hxx
|
|
|
|
FGDeviceConfigurationMap.hxx
|
|
|
|
FGEventInput.hxx
|
|
|
|
FGJoystickInput.hxx
|
|
|
|
FGKeyboardInput.hxx
|
|
|
|
FGMouseInput.hxx
|
|
|
|
input.hxx
|
|
|
|
)
|
|
|
|
|
2010-11-30 10:08:30 +00:00
|
|
|
if(EVENT_INPUT)
|
|
|
|
list(APPEND SOURCES ${EVENT_INPUT_SOURCES})
|
2011-09-21 17:13:13 +01:00
|
|
|
list(APPEND SOURCES ${EVENT_INPUT_HEADERS})
|
2011-06-13 00:45:40 +02:00
|
|
|
include_directories(${DBUS_INCLUDE_DIR} ${DBUS_ARCH_INCLUDE_DIR})
|
2010-11-30 10:08:30 +00:00
|
|
|
endif()
|
2011-01-14 22:37:39 +01:00
|
|
|
|
2010-11-30 10:08:30 +00:00
|
|
|
set(FGJS_SOURCES
|
|
|
|
fgjs.cxx
|
|
|
|
jsinput.cxx
|
|
|
|
jssuper.cxx
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(fgjs ${FGJS_SOURCES})
|
|
|
|
|
|
|
|
target_link_libraries(fgjs
|
2011-09-08 13:59:40 +01:00
|
|
|
${SIMGEAR_CORE_LIBRARIES}
|
2011-09-11 11:22:10 +02:00
|
|
|
${PLIB_LIBRARIES}
|
|
|
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
|
2010-11-30 10:08:30 +00:00
|
|
|
|
2011-01-14 22:37:39 +01:00
|
|
|
add_executable(js_demo js_demo.cxx)
|
2010-11-30 10:08:30 +00:00
|
|
|
|
2011-01-14 22:37:39 +01:00
|
|
|
target_link_libraries(js_demo
|
2011-09-08 13:59:40 +01:00
|
|
|
${SIMGEAR_CORE_LIBRARIES}
|
2010-11-30 10:08:30 +00:00
|
|
|
${PLIB_LIBRARIES}
|
2011-09-11 11:22:10 +02:00
|
|
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
|
2010-11-30 10:08:30 +00:00
|
|
|
|
2011-09-15 09:54:00 +01:00
|
|
|
flightgear_component(Input "${SOURCES}" "${HEADERS}")
|
2010-11-30 10:08:30 +00:00
|
|
|
|
|
|
|
install(TARGETS fgjs js_demo RUNTIME DESTINATION bin)
|