From 2df9f318a5a46a2db975fcce1eab88f453a88175 Mon Sep 17 00:00:00 2001 From: herbglitch Date: Wed, 28 Aug 2024 01:36:58 -0600 Subject: [PATCH] temp cmakelists.txt stuffs --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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()