blob: 6522d1fd60e2b88c9c0ebb0b77042438da8ee0cc (
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.16)
project(listpool)
# Library
add_library(listpool
src/listpool.c)
target_include_directories(listpool PUBLIC
include)
target_link_libraries(listpool
list)
target_compile_options(listpool PRIVATE -Wall -Wextra)
# Test
add_executable(listpool_test
test/listpool_test.c)
target_link_libraries(listpool_test
listpool)
target_compile_options(listpool_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra)
|