Subversion Repositories Scribus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5138 cbradney 1
#
2
# Find the native FREETYPE includes and library
3
#
4
 
5
# This module defines
6
# FREETYPE_INCLUDE_DIR, where to find ft2build.h, ftheader.h, ...
7
# FREETYPE_LIBRARIES, the libraries to link against to use FREETYPE.
8
# FREETYPE_FOUND, If false, do not try to use FREETYPE.
9
 
10
# also defined, but not for general use are
11
# FREETYPE_LIBRARY, where to find the FREETYPE library.
12
 
13
FIND_PATH(FREETYPE_INCLUDE_DIR_FT2BUILD ft2build.h
14
  /usr/include/
15
  /usr/local/include/
16
)
17
 
18
FIND_PATH(FREETYPE_INCLUDE_DIR_FTHEADER freetype/config/ftheader.h
19
  /usr/include/freetype2
20
  /usr/local/include/freetype2
21
)
22
 
23
FIND_LIBRARY(FREETYPE_LIBRARY freetype
24
  PATHS /usr/lib /usr/local/lib
25
)
26
 
27
SET(FREETYPE_FIND_QUIETLY 1)
28
 
29
IF (FREETYPE_LIBRARY)
30
  IF (NOT FREETYPE_FIND_QUIETLY)
31
    MESSAGE(STATUS "Found Freetype2: ${FREETYPE_LIBRARY}")
32
  ENDIF (NOT FREETYPE_FIND_QUIETLY)
33
  IF (FREETYPE_INCLUDE_DIR_FTHEADER AND FREETYPE_INCLUDE_DIR_FT2BUILD)
34
    SET( FREETYPE_FOUND "YES" )
35
    SET( FREETYPE_INCLUDE_DIR
36
      ${FREETYPE_INCLUDE_DIR_FT2BUILD}
37
      ${FREETYPE_INCLUDE_DIR_FTHEADER} )
38
    SET( FREETYPE_LIBRARIES ${FREETYPE_LIBRARY} )
39
  ENDIF (FREETYPE_INCLUDE_DIR_FTHEADER AND FREETYPE_INCLUDE_DIR_FT2BUILD)
40
ENDIF (FREETYPE_LIBRARY)