blob: 8c9dd30a6e8cc75c1025694ee959bda73d06915e (
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
|
cmake_minimum_required(VERSION 3.0)
project(mempool)
# Library
add_library(mempool
src/mempool.c)
target_include_directories(mempool PUBLIC
include)
target_link_libraries(mempool PRIVATE
cassert)
target_compile_options(mempool PRIVATE -Wall -Wextra)
# Test
add_executable(mempool_test
test/mempool_test.c)
target_link_libraries(mempool_test
mempool)
target_compile_options(mempool_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra)
|