/[zanavi_public1]/navit/cmake/FindDBusGLib.cmake
ZANavi

Contents of /navit/cmake/FindDBusGLib.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Fri Oct 28 21:19:04 2011 UTC (8 years, 11 months ago) by zoff99
File size: 524 byte(s)
import files
1 zoff99 2 FIND_PACKAGE(DBus)
2    
3     include(LibFindMacros)
4    
5     libfind_pkg_check_modules(DBUS_GLIB_PKGCONFIG dbus-glib-1)
6    
7     FIND_PATH(DBusGLib_INCLUDE_DIR dbus/dbus-glib.h
8     PATHS
9     ${DBUS_GLIB_PKGCONFIG_INCLUDE_DIRS}
10     /usr/include/dbus-1.0
11     # PATH_SUFFIXES dbus
12     )
13    
14     FIND_LIBRARY(DBusGLib_LIBRARY
15     NAMES
16     dbus-glib-1
17     PATHS
18     ${DBUS_GLIB_PKGCONFIG_LIBRARY_DIRS}
19     )
20    
21     set(DBusGLib_PROCESS_INCLUDES DBusGLib_INCLUDE_DIR DBus_INCLUDE_DIRS)
22     set(DBusGLib_PROCESS_LIBS DBusGLib_LIBRARY DBus_LIBRARIES)
23     libfind_process(DBusGLib)

   
Visit the ZANavi Wiki