diff options
Diffstat (limited to 'lib/mpack/CMakeLists.txt')
-rw-r--r-- | lib/mpack/CMakeLists.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/mpack/CMakeLists.txt b/lib/mpack/CMakeLists.txt new file mode 100644 index 0000000..0e4359d --- /dev/null +++ b/lib/mpack/CMakeLists.txt @@ -0,0 +1,28 @@ +if(TARGET mpack) + return() +endif() + +cmake_minimum_required(VERSION 3.29) + +set(CMAKE_C_STANDARD 11) +set(CMAKE_EXPORT_COMPILE_COMMANDS 1) + +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 +add_compile_definitions(MPACK_READ_TRACKING=0) + |