~ubuntu-branches/ubuntu/quantal/sunpinyin/quantal

« back to all changes in this revision

Viewing changes to wrapper/ibus/cmake/modules/FindSunPinyin.cmake

  • Committer: Package Import Robot
  • Author(s): YunQiang Su
  • Date: 2012-04-11 03:06:40 UTC
  • mfrom: (1.1.4) (1.2.8 sid)
  • Revision ID: package-import@ubuntu.com-20120411030640-8mxepz5e6wffy87c
Tags: 2.0.3+git20120404-1
* Medium urgency for fixing RC bug.
* New upstream commit: fix FTBFS with gcc-4.7 (Closes: #667385).
* Add Multi-Arch: same to libsunpinyin3, -dev and -dbg.
* Add YunQiang Su to uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# - Try to find SunPinyin
2
 
# Once done, this will define
3
 
#
4
 
#  SunPinyin_FOUND - system has iBus
5
 
#  SunPinyin_INCLUDE_DIRS - the iBus include directories
6
 
#  SunPinyin_LIBRARIES - link these to use iBus
7
 
 
8
 
include(LibFindMacros)
9
 
 
10
 
# Dependencies
11
 
 
12
 
# Use pkg-config to get hints about paths
13
 
libfind_pkg_check_modules(SunPinyin_PKGCONF sunpinyin-2.0)
14
 
 
15
 
# Include dir
16
 
find_path(SunPinyin_INCLUDE_DIR
17
 
  NAMES sunpinyin.h
18
 
  PATHS ${SunPinyin_PKGCONF_INCLUDE_DIRS}
19
 
)
20
 
 
21
 
# Finally the library itself
22
 
find_library(SunPinyin_LIBRARY
23
 
  NAMES sunpinyin
24
 
  PATHS ${SunPinyin_PKGCONF_LIBRARY_DIRS}
25
 
)
26
 
 
27
 
# Set the include dir variables and the libraries and let libfind_process do the
28
 
# rest.
29
 
# NOTE: Singular variables for this library, plural for libraries this this lib
30
 
# depends on.
31
 
set(SunPinyin_PROCESS_INCLUDES SunPinyin_INCLUDE_DIR)
32
 
set(SunPinyin_PROCESS_LIBS SunPinyin_LIBRARY)
33
 
libfind_process(SunPinyin)
34