On Tue, Nov 3, 2009 at 8:40 PM, Alex H <aditya15...@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
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake