找到Lua51¶
找到 Lua 库。该模块定义:
::
LUA51_FOUND,如果为假,不要尝试链接到 Lua LUA_LIBRARIES LUA_INCLUDE_DIR,在哪里可以找到 lua.h LUA_VERSION_STRING,找到的 Lua 版本(自 CMake 2.8.8 起)
请注意,预期的包含约定是
#include "lua.h"
并不是
#include <lua/lua.h>
这是因为,lua 位置不规范,可能存在于 lua/ 以外的位置
找到 Lua 库。该模块定义:
::
LUA51_FOUND,如果为假,不要尝试链接到 Lua LUA_LIBRARIES LUA_INCLUDE_DIR,在哪里可以找到 lua.h LUA_VERSION_STRING,找到的 Lua 版本(自 CMake 2.8.8 起)
请注意,预期的包含约定是
#include "lua.h"
并不是
#include <lua/lua.h>
这是因为,lua 位置不规范,可能存在于 lua/ 以外的位置