[CMake] make make test make all

John Drescher drescherjm at gmail.com
Wed Apr 1 12:53:25 EDT 2009


On Wed, Apr 1, 2009 at 12:47 PM, Bill O'Hara <billtohara at gmail.com> wrote:
> I couldn't resist the subject - my question is whether given some number of
> executables that are produced during a build, and some tests that later run
> using those, is there a straightforward way to have cmake (globally) always
> run "make all" before make test? Right now, with my current setup, if
> someone does "make test" without doing "make all", the executables aren't
> found and they complain that things are "broken" (ie. not like they are used
> to). I'd rather prefer to not add custom targets or add_dependencies for all
> the individual tests if at all possible.
>

There was a discussion of this last week on the mailing list.

http://www.cmake.org/pipermail/cmake/2009-March/thread.html#27887

John


More information about the CMake mailing list