[CMake] CMake with Lua Experiment

Brandon Van Every bvanevery at gmail.com
Mon Nov 26 15:55:26 EST 2007


On Nov 26, 2007 1:18 PM, Ken Martin <ken.martin at kitware.com> wrote:
>
>
> Just heading down this path as an experiment to get a better feel for it.
> Posted a snapshot of the source code on the Wiki
> http://www.cmake.org/Wiki/CMake:Experiments_With_Lua The biggest issues I
> see are 1) keeping two languages around sounds like more work and who needs
> more work  2) variables in lua are not variables in CMake and vice versa.
> The cm_configure_file command only configures cmake variables, this could be
> a good thing in one sense :)

I noticed the "unpack" command.

sources = {
  "simpleLib.cxx",
  "simpleCLib.c",
  "simpleWe.cpp"
}

cm_add_library ("simpleLib", "STATIC", unpack(sources));

Would this be necessary / paradigmatic in Lua?  In CMake I just use lists.


Cheers,
Brandon Van Every


More information about the CMake mailing list