[CMake] How to create tests where the compile-phase is part of the test?

Michael Wild themiwi at gmail.com
Tue Sep 7 04:12:16 EDT 2010


The only way I can think of is creating a CMakeLists.txt in the build tree which creates the executables and adds them as a test, and then do the test-builds using "cmake --build --target tgt" as the test command.

Anybody got a better idea?

Michael

--
There is always a well-known solution to every human problem -- neat, plausible, and wrong.
H. L. Mencken

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100907/53eacf0d/attachment.pgp>


More information about the CMake mailing list