[CMake] Running unit test as part of the build

Ben Medina ben.medina at gmail.com
Mon Sep 12 11:47:18 EDT 2011


On Sat, Sep 10, 2011 at 9:10 AM, Erik Johansson <erik at ejohansson.se> wrote:

> How does one get cmake to run the unit test as part of the build so that:
> - If the unit test fails, the build fails.
> - If the unit test has failed, and make is run again, the unit test
> will run again.
> - If the unit test has succeeded, and make is run again, the unit test
> will not run again.
>
> I know how to get two out of three, but not all three at once.

Good question! We currently do the first and third items in your list.
How are you going about the second?


More information about the CMake mailing list