summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/gd-2.0.35/cmake/modules/FindFreetype.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/gd/gd-2.0.35/cmake/modules/FindFreetype.cmake')
-rw-r--r--Build/source/libs/gd/gd-2.0.35/cmake/modules/FindFreetype.cmake42
1 files changed, 42 insertions, 0 deletions
diff --git a/Build/source/libs/gd/gd-2.0.35/cmake/modules/FindFreetype.cmake b/Build/source/libs/gd/gd-2.0.35/cmake/modules/FindFreetype.cmake
new file mode 100644
index 00000000000..ba8dddf099f
--- /dev/null
+++ b/Build/source/libs/gd/gd-2.0.35/cmake/modules/FindFreetype.cmake
@@ -0,0 +1,42 @@
+#
+# Find the native FREETYPE includes and library
+#
+
+# This module defines
+# FREETYPE_INCLUDE_DIR, where to find ft2build.h, ftheader.h, ...
+# FREETYPE_LIBRARIES, the libraries to link against to use FREETYPE.
+# FREETYPE_FOUND, If false, do not try to use FREETYPE.
+
+# also defined, but not for general use are
+# FREETYPE_LIBRARY, where to find the FREETYPE library.
+
+FIND_PATH(FREETYPE_INCLUDE_DIR_FT2BUILD ft2build.h
+ /usr/include/
+ /usr/local/include/
+)
+
+FIND_PATH(FREETYPE_INCLUDE_DIR_FTHEADER freetype/config/ftheader.h
+ /usr/include/freetype2
+ /usr/local/include/freetype2
+)
+
+FIND_LIBRARY(FREETYPE_LIBRARY freetype
+ /usr/lib64
+ /usr/lib
+ /usr/local/lib
+)
+
+IF (FREETYPE_LIBRARY)
+ IF (FREETYPE_INCLUDE_DIR_FTHEADER AND FREETYPE_INCLUDE_DIR_FT2BUILD)
+ SET( FREETYPE_FOUND "YES" )
+ SET( FREETYPE_INCLUDE_DIR
+ ${FREETYPE_INCLUDE_DIR_FT2BUILD}
+ ${FREETYPE_INCLUDE_DIR_FTHEADER} )
+ SET( FREETYPE_LIBRARIES ${FREETYPE_LIBRARY} )
+ ENDIF (FREETYPE_INCLUDE_DIR_FTHEADER AND FREETYPE_INCLUDE_DIR_FT2BUILD)
+ENDIF (FREETYPE_LIBRARY)
+
+MARK_AS_ADVANCED(
+ FREETYPE_INCLUDE_DIR_FT2BUILD
+ FREETYPE_INCLUDE_DIR_FTHEADER
+ )