diff options
author | 3gg <3gg@shellblade.net> | 2023-07-13 08:22:18 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2023-07-13 08:22:18 -0700 |
commit | 9f254f0c7b03236be615b1235cf3fc765d6000ea (patch) | |
tree | f0b878ef2b431b909d9efd45c1f9ec8ed8ca54f8 /mem/CMakeLists.txt | |
parent | fc5886c75ab2626acbc0d7b3db475d17d2cbe01f (diff) |
Add mem allocator, remove listpool.
Diffstat (limited to 'mem/CMakeLists.txt')
-rw-r--r-- | mem/CMakeLists.txt | 26 |
1 files changed, 26 insertions, 0 deletions
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 @@ | |||
1 | cmake_minimum_required(VERSION 3.0) | ||
2 | |||
3 | project(mem) | ||
4 | |||
5 | # Library | ||
6 | |||
7 | add_library(mem | ||
8 | src/mem.c) | ||
9 | |||
10 | target_include_directories(mem PUBLIC | ||
11 | include) | ||
12 | |||
13 | target_link_libraries(mem | ||
14 | list) | ||
15 | |||
16 | target_compile_options(mem PRIVATE -Wall -Wextra) | ||
17 | |||
18 | # Test | ||
19 | |||
20 | add_executable(mem_test | ||
21 | test/mem_test.c) | ||
22 | |||
23 | target_link_libraries(mem_test | ||
24 | mem) | ||
25 | |||
26 | target_compile_options(mem_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) | ||