~ubuntu-branches/ubuntu/raring/sunpinyin/raring

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): YunQiang Su
  • Date: 2012-03-30 15:31:55 UTC
  • mfrom: (1.1.3) (1.2.7 sid)
  • Revision ID: package-import@ubuntu.com-20120330153155-qgls77sogzgtg9zp
Tags: 2.0.3+git20120222-1
* Team upload: git snapshot 20120222.
   - fix breaks if LDFLAGS in environment contains
       multiple words (Closese #646001).
   - rm patches merged to upstream:
       append-os-environ-toenv.patch
       fix-ftbfs-on-sh.patch
       remove-10-candidate-words-limitation.patch
   - refresh disable-lm-dict-compile.patch.
* Bump stardard version to 3.9.3: no modify needed.
* add libsunpinyin3-dbg and python-sunpinyin packages.
* debian/compat to 9, multiarch it.
* rewrite debian/rules with dh 7 format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find iBus
 
2
# Once done, this will define
 
3
#
 
4
#  iBus_FOUND - system has iBus
 
5
#  iBus_INCLUDE_DIRS - the iBus include directories
 
6
#  iBus_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(iBus_PKGCONF ibus-1.0)
 
14
 
 
15
# Include dir
 
16
find_path(iBus_INCLUDE_DIR
 
17
  NAMES ibus.h
 
18
  PATHS ${iBus_PKGCONF_INCLUDE_DIRS}
 
19
)
 
20
 
 
21
# Finally the library itself
 
22
find_library(iBus_LIBRARY
 
23
  NAMES ibus
 
24
  PATHS ${iBus_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(iBus_PROCESS_INCLUDES iBus_INCLUDE_DIR)
 
32
set(iBus_PROCESS_LIBS iBus_LIBRARY)
 
33
libfind_process(iBus)
 
34