<html><head></head><body bgcolor="#FFFFFF">Hello,<div></div><div><br></div><div>I have the following code in the main CTestScript.cmake which I call with "ctest -S CTestScript.cmake, Continuous":</div><div><br></div><div style="padding-bottom: 5px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-left: 5px; padding-right: 5px; padding-top: 5px; "><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp; &nbsp; SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -Wall -W -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wno-deprecated -Woverloaded-virtual -Wwrite-strings -fprofile-arcs -ftest-coverage")<br>&nbsp;&nbsp;&nbsp; SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -Wall -W -fprofile-arcs -ftest-coverage")<br>&nbsp;&nbsp;&nbsp; SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")<br>&nbsp;&nbsp;&nbsp; SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")<br>&nbsp;&nbsp;&nbsp; SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")</p><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;&nbsp;&nbsp; FILE(WRITE "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt" "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMAKE_CXX_FLAGS:STRING=@CMAKE_CXX_FLAGS@<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMAKE_C_FLAGS:STRING=@CMAKE_C_FLAGS@<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMAKE_EXE_LINKER_FLAGS:STRING=@CMAKE_EXE_LINKER_FLAGS@<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMAKE_MODULE_LINKER_FLAGS:STRING=@CMAKE_MODULE_LINKER_FLAGS@<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMAKE_SHARED_LINKER_FLAGS:STRING=@CMAKE_SHARED_LINKER_FLAGS@<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ")</p><p style="margin-top: 0px; margin-bottom: 0px; "><br></p><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;&nbsp;&nbsp; ## -- Configure<br>&nbsp;&nbsp;&nbsp; message (" -- Configure ${MODEL} - ${CTEST_BUILD_NAME} --")<br>&nbsp;&nbsp;&nbsp; ctest_configure (BUILD "${CTEST_BINARY_DIRECTORY}")</p><p style="margin-top: 0px; margin-bottom: 0px; "><br></p><p style="margin-top: 0px; margin-bottom: 0px; "><br></p><p style="margin-top: 0px; margin-bottom: 0px; ">On Windows XP and on Ubuntu Linux Server 11.10 it works and I get coverage information.</p><p style="margin-top: 0px; margin-bottom: 0px; ">But on OS X Lion Server I didn't get any coverage informations.</p><p style="margin-top: 0px; margin-bottom: 0px; ">On OS X the command gcov is available.</p><p style="margin-top: 0px; margin-bottom: 0px; "><br></p><p style="margin-top: 0px; margin-bottom: 0px; ">Could someone please help?</p><p style="margin-top: 0px; margin-bottom: 0px; "><br></p><p style="margin-top: 0px; margin-bottom: 0px; ">Thanks in advance</p><p style="margin-top: 0px; margin-bottom: 0px; "><br></p><p style="margin-top: 0px; margin-bottom: 0px; ">Best Regards</p><p style="margin-top: 0px; margin-bottom: 0px; ">NoRulez</p></div></body></html>