blob: e4b28c3cb0e2f640b850f28131fc4f5e69d32fc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
cmake_minimum_required(VERSION 3.0)
project(mem)
# Library
add_library(mem
src/mem.c)
target_include_directories(mem PUBLIC
include)
target_link_libraries(mem
cassert
list)
target_compile_options(mem PRIVATE -Wall -Wextra)
# Test
add_executable(mem_test
test/mem_test.c)
target_link_libraries(mem_test
mem)
target_compile_options(mem_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra)
|