blob: ca21719d0acc88b6fb592bf1a18b674208777f28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# - Try to find GObject 2.0
# Once done, this will define
#
# GObject_FOUND - system has GObject
# GObject_LIBRARIES - link these to use GObject
include(LibFindMacros)
# Use pkg-config to get hints about paths
libfind_pkg_check_modules(GObject_PKGCONF gobject-2.0)
# Find the library
find_library(GObject_LIBRARY
NAMES gobject-2.0
PATHS ${GObject_PKGCONF_LIBRARY_DIRS}
)
set(GObject_PROCESS_LIBS GObject_LIBRARY Glib_LIBRARIES)
libfind_process(GObject)
|