FindLua
Поиск библиотеки Lua. Этот модуль определяет
LUA_FOUND - if false, do not try to link to Lua LUA_LIBRARIES - both lua and lualib LUA_INCLUDE_DIR - where to find lua.h LUA_VERSION_STRING - the version of Lua found LUA_VERSION_MAJOR - the major version of Lua LUA_VERSION_MINOR - the minor version of Lua LUA_VERSION_PATCH - the patch version of Lua
Обратите внимание, что ожидаемый соглашение об включении —
#include "lua.h"
а не
#include <lua/lua.h>
Это связано с тем, что расположение Lua не стандартизировано и может находиться в местах, отличных от lua/
© 2000–2019 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.11/module/FindLua.html