On Thu, Oct 2, 2008 at 2:33 PM, Ioan Calin Borcoman <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to use gcov with cmake (I'm new to both gcov and cmake).
>
> My first attempt was like this:
>
>   add_executable(hello main.cpp)
>   set(CMAKE_CXX_FLAGS -fprofile-arcs -ftest-coverage)
>   target_link_libraries(hello -fprofile-arcs)

No that's not the correct way to pass flags to the linker:

http://www.cmake.org/Wiki/CTest:Coverage

2cts
-- 
Mathieu
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to