build: add debug compiler flags

This commit is contained in:
Kaian 2019-01-08 18:59:37 +01:00
parent 4c73fbaa61
commit 35e6b4821d
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ project(sngrep
set(PROJECT_NAME sngrep) set(PROJECT_NAME sngrep)
set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD 11)
set(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb -p -g")
add_compile_options(-Wall -pedantic -Wextra) add_compile_options(-Wall -pedantic -Wextra)
include_directories(${CMAKE_SOURCE_DIR}/src) include_directories(${CMAKE_SOURCE_DIR}/src)