[CMake] several executables with cmake
Philip Lowman
philip at yhbt.com
Tue Nov 3 23:48:00 EST 2009
On Tue, Nov 3, 2009 at 8:40 PM, Alex H <aditya15417 at hotmail.com> wrote:
> I have several executables that I want to be able to run using ctest, how
> can I do this?
>
> As far as I know I can only add one executable to one test, using the
> add_test.
>
> Any ideas?
>
You should be able to add as many executables as you want and run as many
tests as you want on each one.
E.g.
enable_testing()
add_executable(foo foo.cc)
add_test(footest foo)
add_executable(bar bar.cc)
add_test(bartest bar)
add_test(extra_bartest bar -extra)
See also the documentation for add_executable() and add_test()
http://www.cmake.org/cmake/help/cmake2.6docs.html#command:add_executable
http://www.cmake.org/cmake/help/cmake2.6docs.html#command:add_test
--
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091103/fcf918ea/attachment.htm>
More information about the CMake
mailing list