Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9480 for code


Ignore:
Timestamp:
Dec 2, 2012, 9:19:55 PM (12 years ago)
Author:
landauf
Message:

added cmake flag ENABLE_GCOV to enable code coverage analysis with gcov

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/testing/cmake/tools/TargetUtilities.cmake

    r9476 r9480  
    351351  ENDIF()
    352352
     353  # Enable gcov (gcc code coverage analysis tool) if ENABLE_GCOV flag is defined
     354  IF(ENABLE_GCOV)
     355    TARGET_LINK_LIBRARIES(${_target_name} gcov)
     356    ADD_COMPILER_FLAGS("-fprofile-arcs")
     357    ADD_COMPILER_FLAGS("-ftest-coverage")
     358  ENDIF()
     359
    353360  # Visual Leak Detector specific stuff (avoids the include)
    354361  IF(VISUAL_LEAK_DETECTOR_ENABLE)
Note: See TracChangeset for help on using the changeset viewer.