From 9f254f0c7b03236be615b1235cf3fc765d6000ea Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 13 Jul 2023 08:22:18 -0700 Subject: Add mem allocator, remove listpool. --- mem/CMakeLists.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 mem/CMakeLists.txt (limited to 'mem/CMakeLists.txt') diff --git a/mem/CMakeLists.txt b/mem/CMakeLists.txt new file mode 100644 index 0000000..233d2be --- /dev/null +++ b/mem/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 3.0) + +project(mem) + +# Library + +add_library(mem + src/mem.c) + +target_include_directories(mem PUBLIC + include) + +target_link_libraries(mem + list) + +target_compile_options(mem PRIVATE -Wall -Wextra) + +# Test + +add_executable(mem_test + test/mem_test.c) + +target_link_libraries(mem_test + mem) + +target_compile_options(mem_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) -- cgit v1.2.3