[IGSTK-Developers] CMake scripting capabilities?
Patrick Cheng
cheng at isis.georgetown.edu
Fri Apr 21 01:26:28 EDT 2006
Hi Kevin,
CMake has support for task execution too, but might not as powerful as
Ant.
cmake -P script.file
This will execute the script file without generating the make files or
VS project files.
cmake has a 'EXEC_PROGRAM' command
EXEC_PROGRAM(Executable [directory in which to run]
[ARGS <arguments to executable>]
[OUTPUT_VARIABLE <var>]
[RETURN_VALUE <var>])
I don't know if this is enough for your task, but the cmake scripting
language is easier to read and write than xml.
cmake also has an option to run command:
cmake -E chdir dir cmd [args]....
This is less flexible as using cmake script.
2cents.
Patrick
Kevin Gary wrote:
> Folks,
>
> Does CMake support any kind of task execution ala Ant?
>
> We have a tool at this point that exports IGSTK state machines
> to a W3C draft standard called SCXML, and then transforms
> this XML into a simulated execution of state machines
> (using Apache Common SCXML project) and the animations
> demonstrated in December. We are currently testing by
> parsing IGSTK log files and replaying the state machine
> transitions in our simulator.
>
> Currently this is a multistage process with pieces written
> in C++, Java, and XSL. To put it together we use Ant.
> If we eventually incorporate this tool into an IGSTK
> tools extension, it would (I think) be better to automate
> the process using CMake if it supports it. Or we could
> stick with Ant if nobody thinks it a big deal...
>
> K2
>
More information about the IGSTK-Developers
mailing list