aboutsummaryrefslogtreecommitdiff
path: root/lib/mpack/CMakeLists.txt
diff options
context:
space:
mode:
authorThomasintAnker <thomasintanker1@gmail.com>2024-06-18 16:23:51 +0200
committerThomasintAnker <thomasintanker1@gmail.com>2024-06-18 16:23:51 +0200
commita55d0bed6240c54f6173b1e38e80212c02c302de (patch)
tree07c15eebc8cd84e1071a3f72d3c74475017372f3 /lib/mpack/CMakeLists.txt
parentb45b5d04daa29fcdd456233a931dcbb5b287769f (diff)
parent245fde65808ce902064ab438296f04f691d007e7 (diff)
Merge branch 'master' into wip/handover
Diffstat (limited to 'lib/mpack/CMakeLists.txt')
-rw-r--r--lib/mpack/CMakeLists.txt28
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)
+