Re: [CMake] How to add a test and compare its output to a reference file ?

2008-09-14 Thread Michael Wild
On 13. Sep, 2008, at 10:57, Judicaël Bedouet wrote: Thanks to both of you. I appreciate your example Michael but it can't work under Visual Studio. Command should be something like ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/hello$ {CMAKE_EXECUTABLE_SUFFIX} but apparently, at this stage, CMake

Re: [CMake] How to add a test and compare its output to a reference file ?

2008-09-14 Thread Judicaël Bedouet
On Sun, Sep 14, 2008 at 10:14 AM, Michael Wild [EMAIL PROTECTED] wrote: On 13. Sep, 2008, at 10:57, Judicaël Bedouet wrote: Thanks to both of you. I appreciate your example Michael but it can't work under Visual Studio. Command should be something like

Re: [CMake] How to add a test and compare its output to a reference file ?

2008-09-13 Thread Judicaël Bedouet
Thanks to both of you. I appreciate your example Michael but it can't work under Visual Studio. Command should be something like ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/hello${CMAKE_EXECUTABLE_SUFFIX} but apparently, at this stage, CMake has no way of knowing if build type is Debug or Release.

Re: [CMake] How to add a test and compare its output to a reference file ?

2008-09-12 Thread Bill Hoffman
Judicaël Bedouet wrote: Hi, I 'm converting a project to CMake. Tests in this project print messages to cout and these output traces are compared to reference files. If output and its reference are different, the corresponding test is considered as failed. I can't see how to make these tests

[CMake] How to add a test and compare its output to a reference file ?

2008-09-11 Thread Judicaël Bedouet
Hi, I 'm converting a project to CMake. Tests in this project print messages to cout and these output traces are compared to reference files. If output and its reference are different, the corresponding test is considered as failed. I can't see how to make these tests work with CMake. I try to