X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/dbd29f3c45344254a59a42d3a01148e8d38d2778..53ec7b26224b9955fee6f01a44350da29488fb87:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 7db3067..9950111 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,7 @@ if (CMAKE_COMPILER_IS_GNUCC) # let CFLAGS env override this if(CMAKE_C_FLAGS STREQUAL "") - set(CMAKE_C_FLAGS "-std=c99 -pedantic -Wall -Wextra -O2") + set(CMAKE_C_FLAGS "-std=c99 -pedantic -Wall -Wextra") endif() # Don't make pedantic checks errors, @@ -74,10 +74,11 @@ if (CMAKE_COMPILER_IS_GNUCC) --param=ssp-buffer-size=4) endif() -set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG=1 -Werror") +set(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb -DDEBUG=1 -Werror") set(CMAKE_C_FLAGS_RELEASE "-O2") set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") # Add library project add_subdirectory(src) +add_subdirectory(examples) add_subdirectory(doc)