You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
744 B

  1. --- /dev/null
  2. +++ b/cmake/Modules/FindLua.cmake
  3. @@ -0,0 +1,18 @@
  4. +# - Try to find lua
  5. +# Once done this will define
  6. +# LUA_FOUND - System has lua
  7. +# LUA_INCLUDE_DIR - The lua include directories
  8. +# LUA_LIBRARY - The libraries needed to use lua
  9. +
  10. +find_path(LUA_INCLUDE_DIR lua.h)
  11. +find_library(LUA_LIBRARY lua)
  12. +
  13. +include(FindPackageHandleStandardArgs)
  14. +# handle the QUIETLY and REQUIRED arguments and set LUA_FOUND to TRUE
  15. +# if all listed variables are TRUE and the requested version matches.
  16. +find_package_handle_standard_args(Lua REQUIRED_VARS
  17. + LUA_LIBRARY LUA_INCLUDE_DIR
  18. + VERSION_VAR LUA_VERSION)
  19. +
  20. +mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARY)
  21. +