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

Diff of /navit/cmake/FindGmodule.cmake

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 55 Revision 56
1# - Try to find Glib-2.0 (with gobject) 1# - Try to find Glib-2.0 (with gobject)
2# Once done, this will define 2# Once done, this will define
3# 3#
4# Glib_FOUND - system has Glib 4# Glib_FOUND - system has Glib
5# Glib_INCLUDE_DIRS - the Glib include directories 5# Glib_INCLUDE_DIRS - the Glib include directories
6# Glib_LIBRARIES - link these to use Glib 6# Glib_LIBRARIES - link these to use Glib
7 7
8include(LibFindMacros) 8include(LibFindMacros)
9 9
10libfind_pkg_check_modules(Gmodule_PKGCONF gmodule-2.0) 10libfind_pkg_check_modules(Gmodule_PKGCONF gmodule-2.0)
11# Main include dir 11# Main include dir
12find_path(Gmodule_INCLUDE_DIR 12find_path(Gmodule_INCLUDE_DIR
13 NAMES gmodule.h 13 NAMES gmodule.h
14 PATHS ${Gmodule_PKGCONF_INCLUDE_DIRS} 14 PATHS ${Gmodule_PKGCONF_INCLUDE_DIRS}
15 PATH_SUFFIXES gmodule-2.0 15 PATH_SUFFIXES gmodule-2.0
16) 16)
17 17
18# Finally the modulerary itself 18# Finally the modulerary itself
19find_library(Gmodule_LIBRARY 19find_library(Gmodule_LIBRARY
20 NAMES gmodule-2.0 20 NAMES gmodule-2.0
21 PATHS ${Gmodule_PKGCONF_LIBRARY_DIRS} 21 PATHS ${Gmodule_PKGCONF_LIBRARY_DIRS}
22) 22)
23 23
24# Set the include dir variables and the libraries and let libfind_process do the rest. 24# Set the include dir variables and the libraries and let libfind_process do the rest.
25# NOTE: Singular variables for this library, plural for libraries this this lib depends on. 25# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
26set(Gmodule_PROCESS_INCLUDES Gmodule_INCLUDE_DIR) 26set(Gmodule_PROCESS_INCLUDES Gmodule_INCLUDE_DIR)
27set(Gmodule_PROCESS_LIBS Gmodule_LIBRARY) 27set(Gmodule_PROCESS_LIBS Gmodule_LIBRARY)
28libfind_process(Gmodule) 28libfind_process(Gmodule)

Legend:
Removed from v.55  
changed lines
  Added in v.56

   
Visit the ZANavi Wiki