Преглед на файлове

Added FindGLM cmake module

Christophe Riccio преди 15 години
родител
ревизия
778aab7d98
променени са 1 файла, в които са добавени 12 реда и са изтрити 0 реда
  1. 12 0
      FindGLM.cmake

+ 12 - 0
FindGLM.cmake

@@ -0,0 +1,12 @@
+if(NOT GLM_PACKAGE_DIR)
+	message("ERROR: GLM_PACKAGE_DIR requires to be set")
+endif(NOT GLM_PACKAGE_DIR)
+
+set(GLM_INCLUDE_DIR ${GLM_PACKAGE_DIR})
+set(GLM_LIBRARY_DIR )
+
+include_directories(${GLM_INCLUDE_DIR})
+
+if(GLM_PACKAGE_DIR AND GLM_INCLUDE_DIR)
+	set(GLM_FOUND "YES")
+endif(GLM_PACKAGE_DIR AND GLM_INCLUDE_DIR)