diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f7d0cc..3116232 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,12 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Default to Debug" FORCE) endif() +add_compile_options( + "-Wall" "-Wextra" "-Werror" "-Wpedantic" "-fexceptions" + "$<$:-O0;-g3;-ggdb;-DARC_DEBUG;>" + "$<$:-02;-g;>" +) + # ~ OPTIONS ~ # option(ARCHEUS_STD_DEFAULT_CONFIG "Build with default config keys" ON) @@ -73,6 +79,15 @@ set(ARCHEUS_STD_SOURCES src/engine/state.c ) +#TODO: add this +#add_executable(tests +# tests/test.c +# +# tests/std/vector.c +# +# ${ARCHEUS_STD_SOURCES} +#) + if(CMAKE_BUILD_TYPE STREQUAL "Debug") string(APPEND ARCHEUS_STD_FLAGS "-Wall -Werror -g -ggdb -DARC_DEBUG ") endif()