You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
904 B
32 lines
904 B
#.rst:
|
|
# FindLuaAndSwig
|
|
# --------------
|
|
#
|
|
# Find Lua and SWIG as a whole.
|
|
|
|
if(LUA_LIBRARIES AND LUA_INCLUDE_DIR AND SWIG_EXECUTABLE)
|
|
set(LUAANDSWIG_FOUND TRUE)
|
|
else()
|
|
find_package(SWIG 2.0)
|
|
if (SWIG_FOUND)
|
|
find_package(Lua 5.3)
|
|
if(LUA_FOUND AND SWIG_FOUND)
|
|
mark_as_advanced(
|
|
LUA_LIBRARIES
|
|
LUA_INCLUDE_DIR
|
|
SWIG_EXECUTABLE)
|
|
endif()
|
|
else()
|
|
message(STATUS "SWIG 2 or later is required for Lua support in LLDB but could not be found")
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(LuaAndSwig
|
|
FOUND_VAR
|
|
LUAANDSWIG_FOUND
|
|
REQUIRED_VARS
|
|
LUA_LIBRARIES
|
|
LUA_INCLUDE_DIR
|
|
SWIG_EXECUTABLE)
|
|
endif()
|