aboutsummaryrefslogtreecommitdiff
path: root/mempool/CMakeLists.txt
blob: 31ff0e1a8a7b0df2e97a387bcc7daa66399fb0b3 (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
cmake_minimum_required(VERSION 3.5)

project(mempool)

set(CMAKE_C_STANDARD 23)
set(CMAKE_C_STANDARD_REQUIRED On)
set(CMAKE_C_EXTENSIONS Off)

# 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)