~ubuntu-branches/ubuntu/trusty/fcitx/trusty-proposed

« back to all changes in this revision

Viewing changes to cmake/FindGettextPo.cmake

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2013-02-10 17:03:56 UTC
  • mfrom: (1.3.18) (33.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130210170356-2yuv6xy3ed378kn0
Tags: 1:4.2.7-1
* New upstream release.
* New binary packages:
  - fcitx-libs-gclient: D-Bus client library for Glib
  - fcitx-libs-qt: D-Bus client library for Qt
  - fcitx-module-quickphrase-editor: Quick Phrase editor module

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find the GETTEXT-PO libraries
 
2
# Once done this will define
 
3
#
 
4
#  GETTEXTPO_FOUND - system has GETTEXT-PO
 
5
#  GETTEXTPO_INCLUDE_DIR - the GETTEXT-PO include directory
 
6
#  GETTEXTPO_LIBRARIES - GETTEXT-PO library
 
7
#
 
8
# Copyright (c) 2012 Yichao Yu <yyc1992@gmail.com>
 
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(GETTEXTPO_INCLUDE_DIR AND GETTEXTPO_LIBRARIES)
 
14
  # Already in cache, be silent
 
15
  set(GETTEXTPO_FIND_QUIETLY TRUE)
 
16
endif()
 
17
 
 
18
find_path(GETTEXTPO_INCLUDE_DIR
 
19
  NAMES gettext-po.h)
 
20
 
 
21
find_library(GETTEXTPO_LIBRARIES
 
22
  NAMES gettextpo)
 
23
 
 
24
include(FindPackageHandleStandardArgs)
 
25
find_package_handle_standard_args(GettextPo DEFAULT_MSG GETTEXTPO_LIBRARIES
 
26
  GETTEXTPO_INCLUDE_DIR)
 
27
 
 
28
mark_as_advanced(GETTEXTPO_INCLUDE_DIR GETTEXTPO_LIBRARIES)