[CMake] Unit Testing

Jeffrey Drake jeffd at techsociety.ca
Mon Jan 5 00:32:03 EST 2009


I have been trying to figure out the easiest way to setup unit tests. I
have seen a unit testing framework called 'check' (some documentation:
http://check.sourceforge.net/doc/check.html/Setting-Up-the-Money-Build.html#Setting-Up-the-Money-Build ) but the problem seems to be that its examples are all with automake. 

So what is the easiest way of doing automated unit tests with CMake? I
have looked at CTest, but I am not understanding it very well either. I
would need a very basic example to see how it works.

Any help is appreciated.
Jeff.



More information about the CMake mailing list