Mercurial > hg > freeDiameter
changeset 343:4a5211430f63
Added a Profiling build type
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 29 Jun 2010 13:41:09 +0900 |
parents | adffe87cfb6d |
children | 0e1318e654bc |
files | CMakeLists.txt |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Tue Jun 29 12:23:50 2010 +0900 +++ b/CMakeLists.txt Tue Jun 29 13:41:09 2010 +0900 @@ -35,9 +35,15 @@ # All source code should be POSIX 200112L compatible, but some other extensions might be used, so: ADD_DEFINITIONS(-D_GNU_SOURCE) -IF (CMAKE_BUILD_TYPE MATCHES "Debug") + +# Add a "Profiling" build type +SET(CMAKE_BUILD_TYPE Profiling) +SET(CMAKE_C_FLAGS_PROFILING "-fprofile-arcs -ftest-coverage") + +# Set the DEBUG flag for Debug and Profiling builds +IF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling") SET(DEBUG 1) -ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug") +ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling") # some subfolders use yacc and lex parsers SET(BISON_GENERATE_DEFINES TRUE)