message(STATUS "Looking for Lua")
find_package(Lua QUIET)
if((NOT ${LUA_FOUND}) OR (NOT DEFINED LUA_INCLUDE_DIR) OR (${LUA_INCLUDE_DIR} MATCHES "LUA_INCLUDE_DIR-NOTFOUND"))
    message(FATAL_ERROR "Lua was not found but is required")
endif()
message(STATUS "Found Lua")
message(STATUS "  Lua include ${LUA_INCLUDE_DIR}")
message(STATUS "  Lua lib ${LUA_LIBRARIES}")

include_directories(${LUA_INCLUDE_DIR})
