updated cmakelists
authorMatthew Owens <matthew@owens.tech>
Sat, 25 Dec 2021 17:31:23 +0000 (17:31 +0000)
committerMatthew Owens <matthew@owens.tech>
Sat, 25 Dec 2021 17:31:23 +0000 (17:31 +0000)
CMakeLists.txt

index 9fa3b14..0859edd 100644 (file)
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.15)
 project(queue)
 
 set(CMAKE_C_STANDARD 11)
+set(CMAKE_BUILD_TYPE DEBUG)
 
 file(GLOB_RECURSE SRC
        src/*.c
@@ -9,6 +10,8 @@ file(GLOB_RECURSE SRC
 )
 
 add_executable(queue-test ${SRC})
+add_compile_options("-Wall" "-Wextra" "-ggdb")
+target_compile_options(queue-test PRIVATE "-pedantic-errors")
 target_include_directories(queue-test
        PUBLIC src
        PUBLIC queue-test