diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-07-19 08:41:04 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-07-19 08:41:04 -0400 |
commit | 299b166ff820e8413f0c34ed5a2e7afac46cd477 (patch) | |
tree | b0b8e1520af740e8a63fd132ebae82326054e12f /cmake/FindGIO.cmake |
initial commit
Diffstat (limited to 'cmake/FindGIO.cmake')
-rw-r--r-- | cmake/FindGIO.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cmake/FindGIO.cmake b/cmake/FindGIO.cmake new file mode 100644 index 0000000..c32a3bf --- /dev/null +++ b/cmake/FindGIO.cmake @@ -0,0 +1,27 @@ +# - Try to find GIO 2.0 +# Once done, this will define +# +# GIO_FOUND - system has GIO +# GIO_INCLUDE_DIRS - the GIO include directories +# GIO_LIBRARIES - link these to use GIO + +include(LibFindMacros) + +# Dependencies +libfind_package(GIO Glib) + +# Use pkg-config to get hints about paths +libfind_pkg_check_modules(GIO_PKGCONF gio-2.0) + +# Find the library +find_library(GIO_LIBRARY + NAMES gio-2.0 + PATHS ${GIO_PKGCONF_LIBRARY_DIRS} +) + +# Set the include dir variables and the libraries and let libfind_process do the rest. +# NOTE: Singular variables for this library, plural for libraries this this lib depends on. +set(GIO_PROCESS_INCLUDES Glib_INCLUDE_DIRS) +set(GIO_PROCESS_LIBS GIO_LIBRARY Glib_LIBRARIES) +libfind_process(GIO) + |