[CMake] Unit tests, but not CTest

Magnus Therning magnus at therning.org
Fri Apr 23 11:56:37 EDT 2010


On Fri, Apr 23, 2010 at 16:35, Tyler Roscoe <tyler at cryptio.net> wrote:
> On Fri, Apr 23, 2010 at 04:24:06PM +0100, Magnus Therning wrote:
>> A project that I'm currently trying to convert over to CMake has
>> several unit tests written as standalone executables.  Are there any
>> examples around for integrating the running of such tests as part of
>> the build in CMake?
>
> add_test just takes a command line. You can put whatever you want in
> there and ctest will run it for you.
>
> http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:add_test

Ah, yes, that comes closer to what I want.  Thanks.  Now I only want
the test's stdout to be connected to the stdout so I can see the
results immediately

/M.

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe


More information about the CMake mailing list