CMakeLists.txt
changeset 10419 efb26f3918c4
parent 10375 9cf405a99347
child 10421 55fd4e519a58
equal deleted inserted replaced
10418:ff5f3b3e6940 10419:efb26f3918c4
   897       set(SDL_INPUT_LINUXKD 1)
   897       set(SDL_INPUT_LINUXKD 1)
   898     endif()
   898     endif()
   899 
   899 
   900     check_include_file("libudev.h" HAVE_LIBUDEV_H)
   900     check_include_file("libudev.h" HAVE_LIBUDEV_H)
   901 
   901 
   902     # !!! FIXME: this needs pkg-config to find the include path, I think.
   902     if(PKG_CONFIG_FOUND)
   903     check_include_file("dbus/dbus.h" HAVE_DBUS_DBUS_H)
   903       pkg_search_module(DBUS dbus-1 dbus)
       
   904       if(DBUS_FOUND)
       
   905         set(HAVE_DBUS_DBUS_H TRUE)
       
   906         include_directories(${DBUS_INCLUDE_DIRS})
       
   907         list(APPEND EXTRA_LIBS ${DBUS_LIBRARIES})
       
   908       endif()
       
   909 
       
   910       pkg_search_module(IBUS ibus-1.0 ibus)
       
   911       if(IBUS_FOUND)
       
   912         set(HAVE_IBUS_IBUS_H TRUE)
       
   913         include_directories(${IBUS_INCLUDE_DIRS})
       
   914         list(APPEND EXTRA_LIBS ${IBUS_LIBRARIES})
       
   915       endif()
       
   916     endif()
       
   917 
   904   endif()
   918   endif()
   905 
   919 
   906   if(INPUT_TSLIB)
   920   if(INPUT_TSLIB)
   907     check_c_source_compiles("
   921     check_c_source_compiles("
   908         #include \"tslib.h\"
   922         #include \"tslib.h\"