Navigation


Changeset 343:4a5211430f63 in freeDiameter


Ignore:
Timestamp:
Jun 29, 2010, 1:41:09 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added a Profiling build type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r341 r343  
    3636# All source code should be POSIX 200112L compatible, but some other extensions might be used, so:
    3737ADD_DEFINITIONS(-D_GNU_SOURCE)
    38 IF (CMAKE_BUILD_TYPE MATCHES "Debug")
     38
     39# Add a "Profiling" build type
     40SET(CMAKE_BUILD_TYPE Profiling)
     41SET(CMAKE_C_FLAGS_PROFILING "-fprofile-arcs -ftest-coverage")
     42
     43# Set the DEBUG flag for Debug and Profiling builds
     44IF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling")
    3945  SET(DEBUG 1)
    40 ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug")
     46ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling")
    4147
    4248# some subfolders use yacc and lex parsers
Note: See TracChangeset for help on using the changeset viewer.