~tiagosh/telepathy-qt/group-chat2

« back to all changes in this revision

Viewing changes to cmake/modules/FindGIOUnix.cmake

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2013-06-06 04:56:14 UTC
  • Revision ID: package-import@ubuntu.com-20130606045614-inpxexo6765rnmp1
Tags: upstream-0.9.3
ImportĀ upstreamĀ versionĀ 0.9.3

Show diffs side-by-side

added added

removed removed

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