blob: 89bf4448e4ba7e7490b804cc88a8da0787a1a51e (
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
28
29
30
31
|
cmake_minimum_required(VERSION 3.5)
project(mem)
set(CMAKE_C_STANDARD 23)
set(CMAKE_C_STANDARD_REQUIRED On)
set(CMAKE_C_EXTENSIONS Off)
# 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)
|