PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms 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
 1# -*- cmake -*-
 2include(Prebuilt)
 3
 4if (STANDALONE)
 5  include(FindPkgConfig)
 6
 7  pkg_check_modules(DBUSGLIB REQUIRED dbus-glib-1)
 8
 9elseif (LINUX)
10  use_prebuilt_binary(dbusglib)
11  set(DBUSGLIB_FOUND ON FORCE BOOL)
12  set(DBUSGLIB_INCLUDE_DIRS
13      ${LIBS_PREBUILT_DIR}/include/dbus
14      )
15  # We don't need to explicitly link against dbus-glib itself, because
16  # the viewer probes for the system's copy at runtime.
17  set(DBUSGLIB_LIBRARIES
18      gobject-2.0
19      glib-2.0
20      )
21endif (STANDALONE)
22
23if (DBUSGLIB_FOUND)
24  set(DBUSGLIB ON CACHE BOOL "Build with dbus-glib message bus support.")
25endif (DBUSGLIB_FOUND)
26
27if (DBUSGLIB)
28  add_definitions(-DLL_DBUS_ENABLED=1)
29endif (DBUSGLIB)