Re: [cmake-developers] Is there a way in CMake to get a list of all CTest tests added with add_test?

2016-10-06 Thread Daniel Pfeifer
On Wed, Oct 5, 2016 at 12:54 PM, Nils Gladitz wrote: > On 04.10.2016 11:20, Tobias Hunger wrote: >> >> On Mo, 2016-10-03 at 14:25 -0400, Brad King wrote: The list we need would thus be built up to contain all COMMAND arguments to add_test that are also build

Re: [cmake-developers] Is there a way in CMake to get a list of all CTest tests added with add_test?

2016-10-05 Thread Nils Gladitz
On 04.10.2016 11:20, Tobias Hunger wrote: On Mo, 2016-10-03 at 14:25 -0400, Brad King wrote: The list we need would thus be built up to contain all COMMAND arguments to add_test that are also build targets in CMake. The list would also need to include targets mentioned in generator expressions

Re: [cmake-developers] Is there a way in CMake to get a list of all CTest tests added with add_test?

2016-10-04 Thread Tobias Hunger
On Mo, 2016-10-03 at 14:25 -0400, Brad King wrote: > > The list we need would thus be built up to contain all COMMAND > > arguments to add_test that are also build targets in CMake. > > The list would also need to include targets mentioned in generator > expressions such as `$`.  This will almost

Re: [cmake-developers] Is there a way in CMake to get a list of all CTest tests added with add_test?

2016-10-04 Thread Clifford Yapp
On Mon, Oct 3, 2016 at 2:25 PM, Brad King wrote: > On 10/03/2016 12:14 PM, Clifford Yapp wrote: >> so what we need is not actually the test names themselves, >> but a list of the executables used to run tests that are also defined >> as build targets. > [snip] >> The list

Re: [cmake-developers] Is there a way in CMake to get a list of all CTest tests added with add_test?

2016-10-03 Thread Brad King
On 10/03/2016 12:14 PM, Clifford Yapp wrote: > so what we need is not actually the test names themselves, > but a list of the executables used to run tests that are also defined > as build targets. [snip] > The list we need would thus be built up to contain all COMMAND > arguments to add_test that

Re: [cmake-developers] Is there a way in CMake to get a list of all CTest tests added with add_test?

2016-10-03 Thread Clifford Yapp
On Mon, Oct 3, 2016 at 11:21 AM, Brad King wrote: > On 10/03/2016 11:17 AM, Clifford Yapp wrote: >> One of the functions we are wrapping in our build with CMake's "_" >> prefix debugging mechanism is add_test. Looking at why we do that, it >> should be possible to avoid

Re: [cmake-developers] Is there a way in CMake to get a list of all CTest tests added with add_test?

2016-10-03 Thread Brad King
On 10/03/2016 11:17 AM, Clifford Yapp wrote: > One of the functions we are wrapping in our build with CMake's "_" > prefix debugging mechanism is add_test. Looking at why we do that, it > should be possible to avoid wrapping if we can get access in CMake to > the list of all test build targets

[cmake-developers] Is there a way in CMake to get a list of all CTest tests added with add_test?

2016-10-03 Thread Clifford Yapp
One of the functions we are wrapping in our build with CMake's "_" prefix debugging mechanism is add_test. Looking at why we do that, it should be possible to avoid wrapping if we can get access in CMake to the list of all test build targets defined with add_test. Essentially, we need to add them