[CMake] CMakeScript

Peter Kümmel syntheticpp at gmx.net
Sun Apr 12 06:59:06 EDT 2009


A new idea to extend CMake's scripting capabilities:

JavaScript is much more familiar to C/C++ developers
than the current macro language and others (Lua).
Qt ships with ready to use JavaScript support and is now licensed under LGPL.
But most important, Qt 4.5 comes with a JavaScript debugger!

Therefore I gave it a try.
Here some screenshots from the debugger with a loaded CMake script:
http://sourceforge.net/project/screenshots.php?group_id=259125

CMakeScript is hosted at:
http://sourceforge.net/projects/cmakescript/

Checkout with git:
git clone git://cmakescript.git.sourceforge.net/gitroot/cmakescript

See ReadmeCMakeScript.txt


Current status

A simple hello world works.

project("hello")
// this starts the debugger
// Qt 4.5 needed
//debugger
var name = "Hello";
add_library (name, "hello.cxx")


The argument passing between the two engine is missing but could
be added by the prototype mechanism of JavaScript.

So when you don't know what to do...

Cheers,
Peter






More information about the CMake mailing list