From ee93c0a5f1caa36ac48caecd3ec55f45e46b890a Mon Sep 17 00:00:00 2001
From: Sebastian Freitag <freitag@vr.rwth-aachen.de>
Date: Wed, 3 Feb 2016 21:03:04 +0100
Subject: [PATCH] ADD: find script for GLFW

---
 FindVGLFW.cmake | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 FindVGLFW.cmake

diff --git a/FindVGLFW.cmake b/FindVGLFW.cmake
new file mode 100644
index 0000000..a38ebd3
--- /dev/null
+++ b/FindVGLFW.cmake
@@ -0,0 +1,25 @@
+# $Id: FindVGLFW.cmake 50720 2015-06-12 20:38:23Z sf458740 $
+
+include( FindPackageHandleStandardArgs )
+include( VistaFindUtils )
+
+if( NOT VGLFW_FOUND )
+
+	vista_find_package_root( GLFW include/GLFW/glfw3.h )
+
+	if( GLFW_ROOT_DIR )
+		find_library( GLFW_LIBRARIES NAMES glfw glfw3 GLFW
+					PATHS ${GLFW_ROOT_DIR}/lib 
+					CACHE "GLFW library" )
+		mark_as_advanced( GLFW_LIBRARIES )
+
+		set( GLFW_INCLUDE_DIRS ${GLFW_ROOT_DIR}/include )
+		set( GLFW_LIBRARY_DIRS ${GLFW_ROOT_DIR}/lib  )
+		get_filename_component( GLFW_LIBRARY_DIRS ${GLFW_LIBRARIES} PATH )
+
+	endif( GLFW_ROOT_DIR )
+
+endif( NOT VGLFW_FOUND )
+
+find_package_handle_standard_args( VGLFW "GLFW could not be found" GLFW_ROOT_DIR )
+
-- 
GitLab