Kaynağa Gözat

externals: Add JSON as a submodule.

bunnei 9 yıl önce
ebeveyn
işleme
0f1ae781d0
3 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 3 0
      .gitmodules
  2. 4 0
      externals/CMakeLists.txt
  3. 1 0
      externals/json

+ 3 - 0
.gitmodules

@@ -31,3 +31,6 @@
 [submodule "cpr"]
     path = externals/cpr
     url = https://github.com/whoshuu/cpr.git
+[submodule "json"]
+    path = externals/json
+    url = https://github.com/nlohmann/json.git

+ 4 - 0
externals/CMakeLists.txt

@@ -34,6 +34,10 @@ add_subdirectory(glad)
 # inih
 add_subdirectory(inih)
 
+# JSON
+add_library(json-headers INTERFACE)
+target_include_directories(json-headers INTERFACE ./json/src)
+
 # MicroProfile
 add_library(microprofile INTERFACE)
 target_include_directories(microprofile INTERFACE ./microprofile)

+ 1 - 0
externals/json

@@ -0,0 +1 @@
+Subproject commit d3496347fcd1382896fca3aaf78a0d803c2f52ec