File: FindM17N.cmake

package info (click to toggle)
fontmatrix 0.6.0%2Bsvn20100107-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 8,024 kB
  • ctags: 7,215
  • sloc: cpp: 37,775; ansic: 14,675; xml: 273; makefile: 122; sh: 97; python: 86; awk: 46
file content (34 lines) | stat: -rw-r--r-- 776 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Finds m17n Library
#
#  M17N_FOUND
#  M17N_INCLUDE_DIRS
#  M17N_LIBRARIES

FIND_PATH(
M17N_INCLUDE_DIR 
NAMES m17n.h
DOC "Include directory for the M17N library"
)

# Look for the library.
find_library(
  M17N_LIBRARY
  NAMES m17n-core
  DOC "Library to link against core M17N"
)

find_library(
  M17N_FLT_LIBRARY
  NAMES m17n-flt
  DOC "Library to link against Layout part of M17N"
)

# message(STATUS "M17N INC "  ${M17N_INCLUDE_DIR})
# message(STATUS "M17N LIB "  ${M17N_LIBRARY} )

# Copy the results to the output variables.
if(M17N_INCLUDE_DIR AND M17N_LIBRARY AND M17N_FLT_LIBRARY)
  set(M17N_FOUND 1)
  set(M17N_LIBRARIES ${M17N_LIBRARY} ${M17N_FLT_LIBRARY})
  set(M17N_INCLUDE_DIRS ${M17N_INCLUDE_DIR})
endif(M17N_INCLUDE_DIR AND M17N_LIBRARY AND M17N_FLT_LIBRARY)