svn-gvsig-desktop / trunk / extensions / ext3Dgui / buildman / plugins-data / depman / CMakeModules / FindFreeType.cmake @ 26254
History | View | Annotate | Download (923 Bytes)
1 |
# Locate FreeType |
---|---|
2 |
# This module defines |
3 |
# FREETYPE_LIBRARY |
4 |
# FREETYPE_FOUND, if false, do not try to link to FreeType |
5 |
# FREETYPE_INCLUDE_DIRS, where to find the headers |
6 |
|
7 |
FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h |
8 |
) |
9 |
MARK_AS_ADVANCED(FREETYPE_INCLUDE_DIR_ft2build) |
10 |
|
11 |
FIND_PATH(FREETYPE_INCLUDE_DIR_freetype2 freetype/config/ftheader.h |
12 |
/usr/include/freetype2 |
13 |
/usr/X11R6/include/freetype2 |
14 |
) |
15 |
MARK_AS_ADVANCED(FREETYPE_INCLUDE_DIR_freetype2) |
16 |
|
17 |
FIND_LIBRARY(FREETYPE_LIBRARY |
18 |
NAMES freetype |
19 |
) |
20 |
MARK_AS_ADVANCED(FREETYPE_LIBRARY) |
21 |
|
22 |
IF(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2) |
23 |
SET(FREETYPE_INCLUDE_DIRS "${FREETYPE_INCLUDE_DIR_ft2build};${FREETYPE_INCLUDE_DIR_freetype2}") |
24 |
ENDIF(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2) |
25 |
|
26 |
SET(FREETYPE_FOUND "NO") |
27 |
IF(FREETYPE_LIBRARY AND FREETYPE_INCLUDE_DIRS) |
28 |
SET(FREETYPE_FOUND "YES") |
29 |
ENDIF(FREETYPE_LIBRARY AND FREETYPE_INCLUDE_DIRS) |
30 |
|
31 |
|