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. --- listpool/CMakeLists.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 listpool/CMakeLists.txt (limited to 'listpool/CMakeLists.txt') diff --git a/listpool/CMakeLists.txt b/listpool/CMakeLists.txt new file mode 100644 index 0000000..6522d1f --- /dev/null +++ b/listpool/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 3.16) + +project(listpool) + +# Library + +add_library(listpool + src/listpool.c) + +target_include_directories(listpool PUBLIC + include) + +target_link_libraries(listpool + list) + +target_compile_options(listpool PRIVATE -Wall -Wextra) + +# Test + +add_executable(listpool_test + test/listpool_test.c) + +target_link_libraries(listpool_test +listpool) + +target_compile_options(listpool_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) -- cgit v1.2.3