Lua CMake based build of Lua 5.4.7 Build as C Build as C++ Usage Inside of your project's CMakeLists.txt add_subdirectory(lua) ... target_link_libraries(<YOURTARGET> lua_static)