From f8217d240d598f39f70047f7a623dd46312542c6 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 4 Dec 2021 16:01:12 -0800 Subject: Initial commit. --- mempool/CMakeLists.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 mempool/CMakeLists.txt (limited to 'mempool/CMakeLists.txt') diff --git a/mempool/CMakeLists.txt b/mempool/CMakeLists.txt new file mode 100644 index 0000000..1ff4ff1 --- /dev/null +++ b/mempool/CMakeLists.txt @@ -0,0 +1,23 @@ +cmake_minimum_required(VERSION 3.16) + +project(mempool) + +# Library + +add_library(mempool + src/mempool.c) + +target_include_directories(mempool PUBLIC + include) + +target_compile_options(mempool PRIVATE -Wall -Wextra) + +# Test + +add_executable(mempool_test + test/mempool_test.c) + +target_link_libraries(mempool_test + mempool) + +target_compile_options(mempool_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) -- cgit v1.2.3