terom@93: # Find lua 5.1 terom@93: # Once done, this will define: terom@93: # terom@93: # Lua51_FOUND terom@93: # Lua51_INCLUDE_DIRS terom@93: # Lua51_LIBRARIES terom@93: # terom@93: include (LibFindMacros) terom@93: terom@93: # include dir terom@93: find_path (Lua51_INCLUDE_DIR terom@93: NAMES "lua5.1/lua.h" terom@93: ) terom@93: terom@93: # library terom@93: find_library (Lua51_LIBRARY terom@93: NAMES "lua5.1" terom@93: ) terom@93: terom@93: # set the external vars terom@93: set (Lua51_PROCESS_INCLUDES Lua51_INCLUDE_DIR) terom@93: set (Lua51_PROCESS_LIBS Lua51_LIBRARY) terom@93: libfind_process (Lua51)