Mercurial > hg > freeDiameter
comparison CMakeLists.txt @ 445:76a896740f94
Added a DebugValgrind configuration
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Thu, 29 Jul 2010 09:54:57 +0900 |
parents | bfe99640cdfa |
children | 8f85c0507de4 |
comparison
equal
deleted
inserted
replaced
444:25c111bec522 | 445:76a896740f94 |
---|---|
41 SET(CMAKE_C_FLAGS_PROFILING "-fprofile-arcs -ftest-coverage -fstack-protector -g -Wall") | 41 SET(CMAKE_C_FLAGS_PROFILING "-fprofile-arcs -ftest-coverage -fstack-protector -g -Wall") |
42 | 42 |
43 # Add a "DebianPackage" build type used when creating the Debian packages | 43 # Add a "DebianPackage" build type used when creating the Debian packages |
44 SET(CMAKE_C_FLAGS_DEBIANPACKAGE "${CMAKE_C_FLAGS_RELWITHDEBINFO}") | 44 SET(CMAKE_C_FLAGS_DEBIANPACKAGE "${CMAKE_C_FLAGS_RELWITHDEBINFO}") |
45 | 45 |
46 # Add a "DebugValgrind" build type used for checking execution with Valgrind tool | |
47 SET(CMAKE_C_FLAGS_DEBUGVALGRIND "-Wall -g -O0") | |
48 | |
46 # Set the DEBUG flag for Debug and Profiling builds | 49 # Set the DEBUG flag for Debug and Profiling builds |
47 IF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling") | 50 IF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling|DebugValgrind") |
48 SET(DEBUG 1) | 51 SET(DEBUG 1) |
49 ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling") | 52 ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling|DebugValgrind") |
50 | 53 |
51 # some subfolders use yacc and lex parsers | 54 # some subfolders use yacc and lex parsers |
52 SET(BISON_GENERATE_DEFINES TRUE) | 55 SET(BISON_GENERATE_DEFINES TRUE) |
53 SET(BISON_PREFIX_OUTPUTS TRUE) | 56 SET(BISON_PREFIX_OUTPUTS TRUE) |
54 INCLUDE(CMakeUserUseBison) | 57 INCLUDE(CMakeUserUseBison) |