PageRenderTime 32ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/cmake/DBusGlib.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 29 lines | 21 code | 5 blank | 3 comment | 3 complexity | 552b5d0311ea370c506e0871a54140e1 MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. include(Prebuilt)
  3. if (STANDALONE)
  4. include(FindPkgConfig)
  5. pkg_check_modules(DBUSGLIB REQUIRED dbus-glib-1)
  6. elseif (LINUX)
  7. use_prebuilt_binary(dbusglib)
  8. set(DBUSGLIB_FOUND ON FORCE BOOL)
  9. set(DBUSGLIB_INCLUDE_DIRS
  10. ${LIBS_PREBUILT_DIR}/include/dbus
  11. )
  12. # We don't need to explicitly link against dbus-glib itself, because
  13. # the viewer probes for the system's copy at runtime.
  14. set(DBUSGLIB_LIBRARIES
  15. gobject-2.0
  16. glib-2.0
  17. )
  18. endif (STANDALONE)
  19. if (DBUSGLIB_FOUND)
  20. set(DBUSGLIB ON CACHE BOOL "Build with dbus-glib message bus support.")
  21. endif (DBUSGLIB_FOUND)
  22. if (DBUSGLIB)
  23. add_definitions(-DLL_DBUS_ENABLED=1)
  24. endif (DBUSGLIB)