~neon/kdesdk-thumbnailers/master

« back to all changes in this revision

Viewing changes to cmake/modules/FindGettextPO.cmake

  • Committer: Jeremy Paul Whiting
  • Date: 2012-12-19 22:45:28 UTC
  • Revision ID: git-v1:f2341a350707c2a5928706709ee78232b4222bf3
Move documentation into application folders, make every application build standalone or as part of kdesdk checkout

svn path=/trunk/KDE/kdesdk/thumbnailers/; revision=1329172

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find GettextPO
 
2
#
 
3
# Once done this will define
 
4
#
 
5
#  GETTEXTPO_FOUND - System has GETTEXTPO
 
6
#  GETTEXTPO_INCLUDE_DIR - The GETTEXTPO include directory
 
7
#  GETTEXTPO_LIBRARY - The library needed to use GETTEXTPO
 
8
 
 
9
# Copyright (c) 2012, Ni Hui <shuizhuyuanluo@126.com>
 
10
# Based off FindLibXml2.cmake from CMake 2.6.4 by Alexander Neundorf <neundorf@kde.org>
 
11
#
 
12
# Redistribution and use is allowed according to the terms of the BSD license.
 
13
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
 
14
 
 
15
 
 
16
if(GETTEXTPO_INCLUDE_DIR AND GETTEXTPO_LIBRARY)
 
17
   # in cache already
 
18
   set(GETTEXTPO_FIND_QUIETLY TRUE)
 
19
endif(GETTEXTPO_INCLUDE_DIR AND GETTEXTPO_LIBRARY)
 
20
 
 
21
find_path(GETTEXTPO_INCLUDE_DIR gettext-po.h)
 
22
 
 
23
find_library(GETTEXTPO_LIBRARY NAMES gettextpo)
 
24
 
 
25
include(FindPackageHandleStandardArgs)
 
26
 
 
27
# handle the QUIETLY and REQUIRED arguments and set GETTEXTPO_FOUND to TRUE if
 
28
# all listed variables are TRUE
 
29
find_package_handle_standard_args(GettextPO DEFAULT_MSG GETTEXTPO_LIBRARY GETTEXTPO_INCLUDE_DIR)
 
30
 
 
31
mark_as_advanced(GETTEXTPO_INCLUDE_DIR GETTEXTPO_LIBRARY)