X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=CMakeLists.txt;h=a6a3194a2ebf1daf5572233cd2830051e4a1685c;hb=0bb17d755cf540c178b9958d86dd51d69b9b5ff5;hp=ffea91c25a74697d4308020adcc93ca25cdc2414;hpb=8184c290cc497e09f08495847b8c941a746c8305;p=flightgear.git diff --git a/CMakeLists.txt b/CMakeLists.txt index ffea91c25..a6a3194a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,8 +80,11 @@ IF(APPLE) list(APPEND PLATFORM_LIBS ${COCOA_LIBRARY} ${CORESERVICES_LIBRARY}) elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") - # disabled while DBus / HAL / udev issues are decided - #set(EVENT_INPUT_DEFAULT 1) + find_package(UDev) + + if(UDEV_FOUND) + set(EVENT_INPUT_DEFAULT 1) + endif(UDEV_FOUND) endif() find_package(Git) @@ -160,19 +163,23 @@ endif (MSVC AND MSVC_3RDPARTY_ROOT) if(EVENT_INPUT) message(STATUS "checking event-based Input") - + IF(APPLE) elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") - find_package(DBus) - if(NOT DBUS_FOUND) - message(WARNING "DBus not found, event input will be disabled") - set(EVENT_INPUT 0) - endif() - + if(NOT UDEV_FOUND) + message(WARNING "UDev not found, event input is disabled!") + set(EVENT_INPUT 0) + else() + set(EVENT_INPUT_LIBRARIES ${UDEV_LIBRARIES}) + endif() + else() message(WARNING "event input is not supported on this platform yet") endif() + + # Keep PLIB INPUT enabled as long as EventInput does not replace current joystick configurations. + set(ENABLE_PLIB_JOYSTICK 1) else(EVENT_INPUT) set(ENABLE_PLIB_JOYSTICK 1) endif(EVENT_INPUT) @@ -188,6 +195,13 @@ find_package(OpenSceneGraph 3.0.0 REQUIRED osgText osgSim osgDB osgParticle osgF if(ENABLE_FGADMIN) find_package(FLTK) + + if ( FLTK_FOUND ) + + set( CMAKE_REQUIRED_INCLUDES ${FLTK_INCLUDE_DIR} ) + set( CMAKE_REQUIRED_LIBRARIES ${FLTK_LIBRARIES} ${X11_Xinerama_LIB} ${X11_Xft_LIB} ) + + endif ( FLTK_FOUND ) endif(ENABLE_FGADMIN) if(ENABLE_LIBSVN) @@ -276,6 +290,7 @@ include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR} ${ALUT_INCLUDE_DIR} + ${OPENGL_INCLUDE_DIR} ${OPENAL_INCLUDE_DIR} ${SIMGEAR_INCLUDE_DIR} ${PLIB_INCLUDE_DIR} )