aboutsummaryrefslogtreecommitdiff
path: root/mem/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'mem/CMakeLists.txt')
-rw-r--r--mem/CMakeLists.txt26
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 @@
1cmake_minimum_required(VERSION 3.0)
2
3project(mem)
4
5# Library
6
7add_library(mem
8 src/mem.c)
9
10target_include_directories(mem PUBLIC
11 include)
12
13target_link_libraries(mem
14 list)
15
16target_compile_options(mem PRIVATE -Wall -Wextra)
17
18# Test
19
20add_executable(mem_test
21 test/mem_test.c)
22
23target_link_libraries(mem_test
24 mem)
25
26target_compile_options(mem_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra)