~ubuntu-branches/ubuntu/trusty/scribus-ng/trusty

« back to all changes in this revision

Viewing changes to cmake/modules/FindHYPHEN.cmake

  • Committer: Package Import Robot
  • Author(s): Oleksandr Moskalenko
  • Date: 2012-02-15 15:57:12 UTC
  • mfrom: (4.2.10 sid)
  • Revision ID: package-import@ubuntu.com-20120215155712-biimoc8o875jht80
Tags: 1.4.0.dfsg+r17300-1
* Prepare a dummy transitional package to converge on the 1.4.0 release.
* debian/NEWS: update the news.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# - Find HYPHEN library
2
 
# Find the native HYPHEN includes and library
3
 
# This module defines
4
 
#  HYPHEN_INCLUDE_DIR, where to find hyphen.h, etc.
5
 
#  HYPHEN_LIBRARIES, libraries to link against to use HYPHEN.
6
 
#  HYPHEN_FOUND, If false, do not try to use HYPHEN.
7
 
# also defined, but not for general use are
8
 
#  HYPHEN_LIBRARY, where to find the HYPHEN library.
9
 
 
10
 
FIND_PATH(HYPHEN_INCLUDE_DIR hyphen.h)
11
 
 
12
 
SET(HYPHEN_NAMES_RELEASE ${HYPHEN_NAMES_RELEASE} ${HYPHEN_NAMES} hyphen libhyphen)
13
 
SET(HYPHEN_NAMES_DEBUG ${HYPHEN_NAMES_DEBUG} hyphend libhyphend)
14
 
 
15
 
FIND_LIBRARY(HYPHEN_LIBRARY_RELEASE NAMES ${HYPHEN_NAMES_RELEASE} )
16
 
FIND_LIBRARY(HYPHEN_LIBRARY_DEBUG NAMES ${HYPHEN_NAMES_DEBUG} )
17
 
 
18
 
INCLUDE(LibraryDebugAndRelease)
19
 
SET_LIBRARY_FROM_DEBUG_AND_RELEASE(HYPHEN)
20
 
 
21
 
# handle the QUIETLY and REQUIRED arguments and set HYPHEN_FOUND to TRUE if 
22
 
# all listed variables are TRUE
23
 
INCLUDE(ScribusFindPackageHandleStandardArgs)
24
 
FIND_PACKAGE_HANDLE_STANDARD_ARGS(HYPHEN DEFAULT_MSG HYPHEN_LIBRARY HYPHEN_INCLUDE_DIR)
25
 
 
26
 
IF(HYPHEN_FOUND)
27
 
  SET( HYPHEN_LIBRARIES ${HYPHEN_LIBRARY} )
28
 
ENDIF(HYPHEN_FOUND)
29