<div class="gmail_quote">On Fri, Mar 20, 2009 at 9:33 AM, Marcel Loose <span dir="ltr">&lt;<a href="mailto:loose@astron.nl">loose@astron.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Robert,<br>
<br>
I am planning to use (but haven&#39;t implemented and tried yet):<br>
<br>
- add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})<br>
  to define a custom &#39;check&#39; target (as with GNU Autotools)<br>
<br>
- add_executable(&lt;testprog&gt; EXCLUDE_FROM_ALL ...)<br>
  for each test program<br>
<br>
- add_dependencies(check &lt;testprog&gt;)<br>
  for each &lt;testprog&gt; you want to be compiled, linked and run<br>
<br>
Hope it helps.</blockquote><div><br></div><div>I just tried this and it works beautifully. Thank you. This will be an acceptable workaround until this is actually a supported feature in CMake. </div></div>