blob: 1ff4ff19e9db04bcc6db9addc42f60679b7ef259 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
cmake_minimum_required(VERSION 3.16)
project(mempool)
# Library
add_library(mempool
src/mempool.c)
target_include_directories(mempool PUBLIC
include)
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)
|