-
Notifications
You must be signed in to change notification settings - Fork 0
/
FindFTGL.cmake
32 lines (28 loc) · 948 Bytes
/
FindFTGL.cmake
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
#
#
# Try to find the FTGL libraries
# Once done this will define
#
# FTGL_FOUND - system has ftgl
# FTGL_INCLUDE_DIR - path to FTGL/FTGL.h
# FTGL_LIBRARY - the library that must be included
#
#
IF (FTGL_LIBRARY AND FTGL_INCLUDE_DIR)
SET(FTGL_FOUND "YES")
ELSE (FTGL_LIBRARY AND FTGL_INCLUDE_DIR)
FIND_PATH(FTGL_INCLUDE_DIR FTGL/ftgl.h PATHS /usr/local/include /usr/include)
FIND_LIBRARY(FTGL_LIBRARY ftgl PATHS /usr/local/lib /usr/lib)
IF (FTGL_INCLUDE_DIR AND FTGL_LIBRARY)
SET(FTGL_FOUND "YES")
ELSE (FTGL_INCLUDE_DIR AND FTGL_LIBRARY)
SET(FTGL_FOUND "NO")
ENDIF (FTGL_INCLUDE_DIR AND FTGL_LIBRARY)
ENDIF (FTGL_LIBRARY AND FTGL_INCLUDE_DIR)
IF (FTGL_FOUND)
MESSAGE(STATUS "Found FTGL libraries at ${FTGL_LIBRARY} and includes at ${FTGL_INCLUDE_DIR}")
ELSE (FTGL_FOUND)
IF (FTGL_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find FTGL libraries")
ENDIF (FTGL_FIND_REQUIRED)
ENDIF (FTGL_FOUND)