[CMake] Need advice for unit test structure
Bill Hoffman
bill.hoffman at kitware.com
Thu May 21 09:52:25 EDT 2009
Philip Lowman wrote:
>
> I don't have an example of this, but it might be possible to have your
> test run a script which configures and builds a small CMake test project
> which compiles against your current code. This test project would of
> course fail to compile by design. Then you could monitor for this
> failure and expect it?
>
ctest --build-and-test can be used to build a test that is not part of
the main solution. It is what we use for testing in CMake itself. See
the Test directory in the cmake source tree for an example.
-Bill
More information about the CMake
mailing list