Split gameservices in gamebindings and gamestorage, turned those into shared libraries.
[fail.git] / FindFreeType2.cmake
bloba445d1ebc7f5d7eccaa274faf7a20c35291c5968
1 # Look for FreeType2.
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
7         freetype/freetype.h
9         /usr/include/freetype2
10         /usr/local/include/freetype2
11         /opt/local/include/freetype2
12         /sw/include/freetype2
15 find_library( FREETYPE2_LIBRARY
17         freetype
18         
19         /usr/lib
20         /usr/local/lib
21         /opt/local/lib
22         /sw/lib
25 if( FREETYPE2_INCLUDE_DIR AND FREETYPE2_LIBRARY )
26         set( FREETYPE2_FOUND "YES" )
27 endif( FREETYPE2_INCLUDE_DIR AND FREETYPE2_LIBRARY )
29 if( FREETYPE2_FOUND )
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 )