am7xxx, doc: add Doxygen documentation for the public API
[libam7xxx.git] / CMakeLists.txt
index 8c9b1c1..aee9581 100644 (file)
@@ -45,7 +45,6 @@ if (CMAKE_COMPILER_IS_GNUCC)
   add_flags(CMAKE_C_FLAGS
     -fno-common
     -Wall
-    -Werror
     -Wextra
     -Wformat=2
     -Winit-self
@@ -69,10 +68,11 @@ if (CMAKE_COMPILER_IS_GNUCC)
     -Wunreachable-code
     -Wunsafe-loop-optimizations
     -Wwrite-strings
-    )
+    -fstack-protector
+    --param=ssp-buffer-size=4)
 endif()
 
-set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG=1")
+set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG=1 -Werror")
 set(CMAKE_C_FLAGS_RELEASE "-O2")
 set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
 
@@ -102,3 +102,4 @@ endif(GIT_FOUND)
 
 # Add library project
 add_subdirectory(src)
+add_subdirectory(doc)