From 54db532879ed3f6d76463a3ab3f3895bd41c861c Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 14 Feb 2025 19:01:21 +0100 Subject: feat(test): Add test runner (debug is ok, 2 failures in release) --- CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index ddba94b..c022fc3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,7 @@ cmake_minimum_required(VERSION 3.30.5) project(kagamic VERSION 0.1 LANGUAGES C) set(CMAKE_C_STANDARD 17) + add_executable(main main.c string.h string.c @@ -11,3 +12,16 @@ add_executable(main ) target_link_libraries(main m) target_compile_options(main PRIVATE -Wall -pedantic -Wextra) + + +add_executable(test + test.c + testing.h + string.h string.c + memory.h memory.c + vec.h vec.c + json.h json.c + log.h log.c +) +target_link_libraries(test m) +target_compile_options(test PRIVATE -Wall -pedantic -Wextra) -- cgit v1.3