<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 actually am running into a problem with this. When I run my tests, it says they have all failed, as if there is a boolean issue somewhere. Also, I can&#39;t seem to find out how the visual studio project &quot;check&quot; runs the tests. I looked in post build events, but I see nothing. Where and how is it evoking the tests? When I look at the post build events in Visual Studio 2008 for the RUN_TESTS project, the command to execute the tests is in the post build event section.</div>
</div>