aboutsummaryrefslogtreecommitdiff
path: root/mempool/CMakeLists.txt
blob: fe3e2a5b79865ff527cb30282b11933de9a06f21 (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.0)

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)