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