[CMake] List of added tests

Alexander Neundorf a.neundorf-work at gmx.net
Tue Feb 22 13:23:14 EST 2011


On Tuesday 22 February 2011, Sebastian Schaetz wrote:
> Hi,
>
> I was wondering if there was a way to access a list of all tests that were
> added using "add_test". Ideal would be to access the binary names and full
> path of the tests, like a variable that contains all of them or something.

No, there is not AFAIK.
What you coudl do is adding a wrapper macro like my_add_test(), which collects 
that information somewhere.

Alex


More information about the CMake mailing list