CMake:Experiments With Lua: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
(Replace content with link to new CMake community wiki)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Here (http://www.cmake.org/Wiki/Image:CMakeLua.zip) is a source tree for a CMake that also accepts Lua as input. This is just an experiment and only one command cm_get_property returns a value as a proper Lua function should. But all commands are wrapped and the LuaTest test case (found under CMake/Tests) works.
{{CMake/Template/Moved}}


<pre>
This page has moved [https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/dev/Experiments-With-Lua here].
-- a simple test case
cm_project ("LuaTest");
 
cm_add_executable ("LuaTest", "simple.cxx");
 
sources = {
  "simpleLib.cxx",
  "simpleCLib.c",
  "simpleWe.cpp"
}
 
cm_add_library ("simpleLib", "STATIC", unpack(sources));
 
cm_target_link_libraries ("LuaTest", "simpleLib");
 
print("The location of simpleLib is: " ..  
  cm_get_property("TARGET", "simpleLib", "LOCATION"));
</pre>

Latest revision as of 15:40, 30 April 2018


The CMake community Wiki has moved to the Kitware GitLab Instance.

This page has moved here.