aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/FindFTGL.cmake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cmake/FindFTGL.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmake/FindFTGL.cmake b/cmake/FindFTGL.cmake
new file mode 100644
index 00000000..a5d44fb1
--- /dev/null
+++ b/cmake/FindFTGL.cmake
@@ -0,0 +1,16 @@
+# - Locate FTGL library
+# This module defines
+# FTGL_LIBRARIES, the library to link against
+# FTGL_FOUND, if false, do not try to link to FTGL
+# FTGL_INCLUDE_DIRS, where to find headers.
+#
+# $FTGL_DIR is an environment variable that points to the main ftgl directory.
+
+FIND_PATH(FTGL_INCLUDE_DIRS FTGL/ftgl.h HINTS $ENV{FTGL_DIR})
+FIND_LIBRARY(FTGL_LIBRARY NAMES ftgl libftgl ftgl_static HINTS $ENV{FTGL_DIR})
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(FTGL DEFAULT_MSG FTGL_LIBRARY FTGL_INCLUDE_DIRS)
+
+MARK_AS_ADVANCED(FTGL_LIBRARY FTGL_INCLUDE_DIRS)
+