[CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Robert Dailey
Hi, I'm using Visual Studio as my generator for my CMake projects. As of right now, I make my tests depend on the libraries they test. So for example, tests named: test_thingA test_thingB will all depend on library: libfoo.lib When I build target libfoo in visual studio, it would be nice to

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread David Cole
On Tue, Feb 21, 2012 at 1:27 PM, Robert Dailey rcdai...@gmail.com wrote: Hi, I'm using Visual Studio as my generator for my CMake projects. As of right now, I make my tests depend on the libraries they test. So for example, tests named: test_thingA test_thingB will all depend on

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Robert Dailey
On Tue, Feb 21, 2012 at 12:37 PM, David Cole david.c...@kitware.com wrote: On Tue, Feb 21, 2012 at 1:27 PM, Robert Dailey rcdai...@gmail.com wrote: Hi, I'm using Visual Studio as my generator for my CMake projects. As of right now, I make my tests depend on the libraries they test. So for

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread David Cole
On Tue, Feb 21, 2012 at 1:51 PM, Robert Dailey rcdai...@gmail.com wrote: On Tue, Feb 21, 2012 at 12:37 PM, David Cole david.c...@kitware.com wrote: On Tue, Feb 21, 2012 at 1:27 PM, Robert Dailey rcdai...@gmail.com wrote: Hi, I'm using Visual Studio as my generator for my CMake projects. As

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Robert Dailey
On Tue, Feb 21, 2012 at 1:15 PM, David Cole david.c...@kitware.com wrote: On Tue, Feb 21, 2012 at 1:51 PM, Robert Dailey rcdai...@gmail.com wrote: On Tue, Feb 21, 2012 at 12:37 PM, David Cole david.c...@kitware.com wrote: On Tue, Feb 21, 2012 at 1:27 PM, Robert Dailey rcdai...@gmail.com

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Jean-Christophe Fillion-Robin
An possible alternative could be to associate one or more labels to your tests, then you should be able to run a specific subset of the test suite. See http://www.cmake.org/cmake/help/ctest-2-8-docs.html#opt:-Lregex--label-regexregex and

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Eric Noulard
2012/2/21 Robert Dailey rcdai...@gmail.com: I apologize if I sounded like your suggestion wasn't meaningful or useful. I would much rather prefer to do it how you suggest (running all tests), but this leaves me with some concerns: If the developer is running all unit tests on their local