Lines Matching refs:lua
19 OPTION(ENABLE_LUA "Enable lua support [default: OFF]" OFF)
23 # Find lua installation
25 # Find lua libraries
45 "include/lua${LUA_VERSION_MAJOR}${LUA_VERSION_MINOR}"
46 "include/lua${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}"
47 "include/lua-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}"
48 include/lua include
67 MESSAGE(STATUS "Fallback from luajit to plain lua")
69 MESSAGE(STATUS "Check for lua ${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}")
70 FIND_PATH(LUA_INCLUDE_DIR lua.h
74 PATH_SUFFIXES "include/lua${LUA_VERSION_MAJOR}${LUA_VERSION_MINOR}"
75 "include/lua${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}"
76 "include/lua-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}"
77 include/lua include
81 NAMES lua
82 "lua${LUA_VERSION_MAJOR}${LUA_VERSION_MINOR}"
83 "lua${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}"
84 "lua-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}"
94 MESSAGE(STATUS "Check for lua ${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}")
95 FIND_PATH(LUA_INCLUDE_DIR lua.h
99 PATH_SUFFIXES "include/lua${LUA_VERSION_MAJOR}${LUA_VERSION_MINOR}"
100 "include/lua${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}"
101 "include/lua-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}"
102 include/lua include
106 NAMES lua
107 "lua${LUA_VERSION_MAJOR}${LUA_VERSION_MINOR}"
108 "lua${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}"
109 "lua-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}"
128 MESSAGE(STATUS "Found lua ${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}")
255 MESSAGE(FATAL_ERROR "Lua not found, lua support is required")
265 MESSAGE(FATAL_ERROR "Lua not found, lua support is required")
270 SET(UCL_LUA_SRC lua/lua_ucl.c)
271 ADD_LIBRARY(lua-ucl ${LIB_TYPE} ${UCL_LUA_SRC})
272 ADD_LIBRARY(ucl::lua ALIAS lua-ucl)
274 TARGET_LINK_LIBRARIES(lua-ucl "${LUAJIT_LIBRARY}")
276 TARGET_LINK_LIBRARIES(lua-ucl "${LUA_LIBRARY}")
278 TARGET_LINK_LIBRARIES(lua-ucl ucl)
279 TARGET_INCLUDE_DIRECTORIES(lua-ucl PUBLIC include PRIVATE src uthash)
280 SET_TARGET_PROPERTIES(lua-ucl PROPERTIES
284 INSTALL(TARGETS lua-ucl DESTINATION ${CMAKE_INSTALL_LIBDIR}