I want to make Lua bindings to my C++ library. Thing is that luarocks'
built-in build system doesn't play well with C++ in general and
especially with C++17, so I want to use CMake instead. Also, my library
already have CMake package, so it plays with it very well.
However, it seems that whole idea is pretty complicated due to fact
that luarocks does not export any helpful variables to CMake, like
library destination directory, or Lua include directory.
Have anyone used luarocks with CMake build system on practice? How were
problems listed by me solved? Thanks in advance.
On Sat, 2019-08-17 at 13:06 -0400, Peter Aronoff wrote:
> I don’t use CMake myself, but I know of one large project that uses
> lua, and luarocks: neovim. You might find their build helpful to
Thank you. Sadly, it seems to do nothing with what I want to do. It
uses CMake, but I'm interested in using to create luarock which use
CMake at its build system. As for including Lua from CMake, I have done
that many times.