-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindVFreeType.cmake
30 lines (22 loc) · 1.08 KB
/
FindVFreeType.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
# $Id: FindVGLEW.cmake 21620 2011-05-30 10:28:48Z dr165799 $
include( FindPackageHandleStandardArgs )
include( VistaFindUtils )
if( NOT VFREETYPE_FOUND )
vista_find_package_root( FreeType include/freetype/freetype.h )
if( NOT FREETYPE_ROOT_DIR )
vista_find_package_root( FreeType include/freetype2/freetype.h )
endif( NOT FREETYPE_ROOT_DIR )
if( FREETYPE_ROOT_DIR )
find_library( FREETYPE_LIBRARIES NAMES freetype FreeType
PATHS ${FREETYPE_ROOT_DIR}/lib
CACHE "FREETYPE library" )
mark_as_advanced( FREETYPE_LIBRARIES )
set( FREETYPE_INCLUDE_DIRS ${FREETYPE_ROOT_DIR}/include
${FREETYPE_ROOT_DIR}/include/freetype2 )
set( FREETYPE_LIBRARY_DIRS ${FREETYPE_ROOT_DIR}/lib )
get_filename_component( FREETYPE_LIBRARY_DIRS ${FREETYPE_LIBRARIES} PATH )
else ( FREETYPE_ROOT_DIR )
message( WARNING "vista_find_package_root - File named include/freetype/freetype.h not found" )
endif( FREETYPE_ROOT_DIR )
endif( NOT VFREETYPE_FOUND )
find_package_handle_standard_args( VFREETYPE "FREETYPE could not be found" FREETYPE_ROOT_DIR )