diff options
Diffstat (limited to 'listpool/CMakeLists.txt')
-rw-r--r-- | listpool/CMakeLists.txt | 26 |
1 files changed, 26 insertions, 0 deletions
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 @@ | |||
1 | cmake_minimum_required(VERSION 3.16) | ||
2 | |||
3 | project(listpool) | ||
4 | |||
5 | # Library | ||
6 | |||
7 | add_library(listpool | ||
8 | src/listpool.c) | ||
9 | |||
10 | target_include_directories(listpool PUBLIC | ||
11 | include) | ||
12 | |||
13 | target_link_libraries(listpool | ||
14 | list) | ||
15 | |||
16 | target_compile_options(listpool PRIVATE -Wall -Wextra) | ||
17 | |||
18 | # Test | ||
19 | |||
20 | add_executable(listpool_test | ||
21 | test/listpool_test.c) | ||
22 | |||
23 | target_link_libraries(listpool_test | ||
24 | listpool) | ||
25 | |||
26 | target_compile_options(listpool_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) | ||