From a2a917bdc59a5b8a6f795f8642affee28594f905 Mon Sep 17 00:00:00 2001 From: Arthur Moore Date: Thu, 18 Jun 2015 16:51:28 -0400 Subject: [PATCH] Added gprof support when debugging --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cade7a7a..db476967 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,8 +190,9 @@ ENDIF ( WIN32 ) SET( CMAKE_C_FLAGS_RELEASE "-O3") SET( CMAKE_CXX_FLAGS_RELEASE "-O3") -SET( CMAKE_C_FLAGS_DEBUG "-g -Wall") -SET( CMAKE_CXX_FLAGS_DEBUG "-g -Wall") +SET( CMAKE_C_FLAGS_DEBUG "-g -pg -Wall") +SET( CMAKE_CXX_FLAGS_DEBUG "-g -pg -Wall") +SET( CMAKE_LINKER_FLAGS_DEBUG "-pg") add_subdirectory (fex)