blob: 4badc7b9971ef8687c1b965d856e97913f9ccdac (
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
|
if(TARGET mpack)
return()
endif()
cmake_minimum_required(VERSION 3.29)
set(CMAKE_C_STANDARD 11)
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
# set(CMAKE_BUILD_TYPE Debug)
project(mpack C)
add_library(mpack STATIC
src/src/mpack/mpack-common.c
src/src/mpack/mpack-expect.c
src/src/mpack/mpack-node.c
src/src/mpack/mpack-platform.c
src/src/mpack/mpack-reader.c
src/src/mpack/mpack-writer.c
read-remaining.c
)
target_include_directories(mpack SYSTEM INTERFACE
.
src/src/mpack
)
# causes some wild crashes, please leave off
target_compile_definitions(mpack PRIVATE MPACK_READ_TRACKING=0)
|