cmake_modules/FindLua.cmake
changeset 2924 908851e59958
child 2925 d088b5f813c9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cmake_modules/FindLua.cmake	Wed Mar 03 15:04:39 2010 +0000
@@ -0,0 +1,11 @@
+# Find the Lua library
+#
+
+IF(UNIX)
+  FIND_LIBRARY(LUA_LIBRARY NAMES lua5.1 lua)
+ELSE(UNIX)
+  IF(WIN32)
+    SET(LUA_LIBRARY lua.dll CACHE FILEPATH "Path to the lua library to be used. This should be set to 'lua.dll' or 'lua' under Win32/Apple to use the bundled copy.")
+  else(WIN32)
+  ENDIF(WIN32)
+ENDIF(UNIX)
\ No newline at end of file