[CMake] emulating `make check' behaviour

Scott Amort jsamort at gmail.com
Tue Aug 15 22:14:06 EDT 2006


Hi Bill,

On Tue, 2006-08-15 at 14:26 -0400, William A. Hoffman wrote:
> I still think that --build-and-test is your best bet.
> Look here for examples: CMake/Source/CMakeLists.txt 
> 
> It basically, will run cmake, and run the build command at the time
> the test is run.   So, the tests are not part of the larger projects
> cmakelist files, and do not get built with all, or show up in IDE's to
> clutter things up.   When you do make test, it will run ctest and
> for each test it will run cmake on the test, and then run the make
> or ide to build the test, then it will run the test.

Thanks for the example, that made things quite a bit clearer.  I'll
experiment a bit and see how things go.

Best,
Scott



More information about the CMake mailing list