diff options
Diffstat (limited to 'linden/indra/cmake/DBusGlib.cmake')
-rw-r--r-- | linden/indra/cmake/DBusGlib.cmake | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/linden/indra/cmake/DBusGlib.cmake b/linden/indra/cmake/DBusGlib.cmake new file mode 100644 index 0000000..cfc4ccd --- /dev/null +++ b/linden/indra/cmake/DBusGlib.cmake | |||
@@ -0,0 +1,29 @@ | |||
1 | # -*- cmake -*- | ||
2 | include(Prebuilt) | ||
3 | |||
4 | if (STANDALONE) | ||
5 | include(FindPkgConfig) | ||
6 | |||
7 | pkg_check_modules(DBUSGLIB REQUIRED dbus-glib-1) | ||
8 | |||
9 | elseif (LINUX) | ||
10 | use_prebuilt_binary(dbusglib) | ||
11 | set(DBUSGLIB_FOUND ON FORCE BOOL) | ||
12 | set(DBUSGLIB_INCLUDE_DIRS | ||
13 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 | ||
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 | ) | ||
21 | endif (STANDALONE) | ||
22 | |||
23 | if (DBUSGLIB_FOUND) | ||
24 | set(DBUSGLIB ON CACHE BOOL "Build with dbus-glib message bus support.") | ||
25 | endif (DBUSGLIB_FOUND) | ||
26 | |||
27 | if (DBUSGLIB) | ||
28 | add_definitions(-DLL_DBUS_ENABLED=1) | ||
29 | endif (DBUSGLIB) | ||