<p dir="ltr">You can do something similar with CTest. See those docs and perhaps the examples in <a href="https://github.com/jedbrown/dohp">https://github.com/jedbrown/dohp</a>.</p>
<div class="gmail_quote">On Aug 20, 2013 8:21 PM, "Sanjay GOVINDJEE" <<a href="mailto:s_g@berkeley.edu">s_g@berkeley.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><div><div>I have recently converted our project to use cmake to<br></div>generate its makefiles.  I was wondering, if anyone has<br></div>an example of how to have cmake add the "run lines"<br>

</div>to the makefile that it generates?  i.e. I want cmake to<br>add lines lines like:<br><br>runex1:<br>        -@${MPIEXEC} -n 1 ./ex1 -ksp_monitor_short -ksp_gmres_cgs_refinement_type refine_always<br><br></div>and other variants to the makefile that it produces.  Note that I am already using<br>

</div>Jed Brown's FindPETSc.cmake already.<br><br></div>-sanjay<br><div><div><br></div></div></div>
</blockquote></div>