2 # Once done, it will set FREETYPE2_FOUND to true, FREETYPE2_LIBRARY and FREETYPE2_INCLUDE_DIR.
4 set( FREETYPE2_FOUND "NO" )
6 find_path( FREETYPE2_INCLUDE_DIR
10 /usr/local/include/freetype2
11 /opt/local/include/freetype2
15 find_library( FREETYPE2_LIBRARY
25 if( FREETYPE2_INCLUDE_DIR AND FREETYPE2_LIBRARY )
26 set( FREETYPE2_FOUND "YES" )
27 endif( FREETYPE2_INCLUDE_DIR AND FREETYPE2_LIBRARY )
30 if( NOT FREETYPE2_FIND_QUIETLY )
31 message( STATUS "Found FreeType2: ${FREETYPE2_LIBRARY}" )
32 endif( NOT FREETYPE2_FIND_QUIETLY )
33 else( FREETYPE2_FOUND )
34 if( FREETYPE2_FIND_REQUIRED )
35 message( FATAL_ERROR "Could not find FreeType2" )
36 endif( FREETYPE2_FIND_REQUIRED )
37 endif( FREETYPE2_FOUND )