1add_custom_command( 2 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapLua.cpp 3 DEPENDS ${SWIG_SOURCES} 4 DEPENDS ${SWIG_INTERFACES} 5 DEPENDS ${SWIG_HEADERS} 6 COMMAND ${SWIG_EXECUTABLE} 7 ${SWIG_COMMON_FLAGS} 8 -I${CMAKE_CURRENT_SOURCE_DIR} 9 -lua 10 -w503 11 -outdir ${CMAKE_CURRENT_BINARY_DIR} 12 -o ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapLua.cpp 13 ${CMAKE_CURRENT_SOURCE_DIR}/lua.swig 14 VERBATIM 15 COMMENT "Building LLDB Lua wrapper") 16 17add_custom_target(swig_wrapper_lua ALL DEPENDS 18 ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapLua.cpp 19) 20