If you use set_property instead, there's an APPEND mode to make this easier:<div><br></div><div>set_property(TEST test3 APPEND PROPERTY DEPENDS test2)<br>set_property(TEST test3 APPEND PROPERTY DEPENDS test1)</div><div>
<br></div><div>I think you can do it with set_tests_properties, too, like this:</div><div>SET_TESTS_PROPERTIES(test3 PROPERTIES DEPENDS "test1;test2")</div><div><br></div><div>...but I would recommend set_property with APPEND.</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Fri, Mar 12, 2010 at 4:42 PM, Alexandre Gramfort <span dir="ltr"><<a href="mailto:alexandre.gramfort@inria.fr">alexandre.gramfort@inria.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
I don't manage to have a test depend on multiple tests.<br>
<br>
If I do :<br>
<br>
SET_TESTS_PROPERTIES(test3 PROPERTIES DEPENDS test2)<br>
SET_TESTS_PROPERTIES(test3 PROPERTIES DEPENDS test1)<br>
<br>
test3 only depends on test1<br>
<br>
and<br>
<br>
SET_TESTS_PROPERTIES(test3 PROPERTIES DEPENDS test1 test2)<br>
<br>
is not a valid syntax.<br>
<br>
SET_TESTS_PROPERTIES(test3 PROPERTIES DEPENDS "test1 test2")<br>
<br>
do not work either<br>
<br>
Any idea?<br>
<br>
Thanks<br>
Alexandre<br>
<br>
2010/3/12 Alexander Neundorf <<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>>:<br>
<div><div></div><div class="h5">> On Friday 12 March 2010, David Cole wrote:<br>
>> ctest -R "test1|test2" ?<br>
>><br>
>> Using -R says "run only the tests that match this regex" -- it does not say<br>
>> "run the matching tests after running all the tests they depend on<br>
>> first"...<br>
><br>
> Well, OTOH if I do "make some_target" with cmake-generated makefiles it will<br>
> build all targets some_target depends on first ;-)<br>
> You know, people have become to expect that cmake always does things in the<br>
> best possible way :-)<br>
><br>
> Alex<br>
><br>
</div></div></blockquote></div><br></div>