On Mon, Feb 23, 2009 at 1:46 PM, ankit jain <ankitgu...@gmail.com> wrote: > Hi all, > > I have an executable having some test cases. I want to give some arguments > to it which i will give it through add_test command. but my objective is to > write the output of the executable to a file at run tiem itself. > > How to do that?
The simpliest solution would be to rewrite the test itself ... > Secondly i want ot use this file in which output of executable is written as > an argument to other test case. > > How to achieve that? You could just wrap the test within a cmake -P call where the cmake script would call execute_process. Check the execute_process to see how to retrieve stderr/stdout. 2cts -- Mathieu _______________________________________________ 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