<div class="gmail_quote">On Fri, Mar 20, 2009 at 9:33 AM, Marcel Loose <span dir="ltr"><<a href="mailto:loose@astron.nl">loose@astron.nl</a>></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't implemented and tried yet):<br>
<br>
- add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})<br>
to define a custom 'check' target (as with GNU Autotools)<br>
<br>
- add_executable(<testprog> EXCLUDE_FROM_ALL ...)<br>
for each test program<br>
<br>
- add_dependencies(check <testprog>)<br>
for each <testprog> 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't seem to find out how the visual studio project "check" 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>