1
# - Try to find the GIO unix libraries
2
# Once done this will define
4
# GIOUNIX_FOUND - system has GIO unix
5
# GIOUNIX_INCLUDE_DIR - the GIO unix include directory
7
# Copyright (C) 2011 Collabora Ltd. <http://www.collabora.co.uk/>
8
# Copyright (C) 2011 Nokia Corporation
10
# Redistribution and use is allowed according to the terms of the BSD license.
11
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
13
if(GIOUNIX_INCLUDE_DIR)
14
# Already in cache, be silent
15
set(GIOUNIX_FIND_QUIETLY TRUE)
16
endif(GIOUNIX_INCLUDE_DIR)
19
pkg_check_modules(PC_LibGIOUnix gio-unix-2.0)
21
find_path(GIOUNIX_MAIN_INCLUDE_DIR
22
NAMES gio/gunixconnection.h
23
HINTS ${PC_LibGIOUnix_INCLUDEDIR}
24
PATH_SUFFIXES gio-unix-2.0)
26
set(GIOUNIX_INCLUDE_DIR "${GIOUNIX_MAIN_INCLUDE_DIR}")
28
include(FindPackageHandleStandardArgs)
29
find_package_handle_standard_args(GIOUNIX DEFAULT_MSG GIOUNIX_MAIN_INCLUDE_DIR)
31
mark_as_advanced(GIOUNIX_INCLUDE_DIR)