Skip to content

Commit

Permalink
Add nlohmann modern json library
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Mar 11, 2018
1 parent 17e696e commit 90a9cc4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "extern/SQLiteCpp"]
path = extern/SQLiteCpp
url = https://github.com/etternagame/SQLiteCpp
[submodule "extern/json"]
path = extern/json
url = https://github.com/etternagame/json.git
1 change: 1 addition & 0 deletions extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ if (NOT SYSTEM_PCRE_FOUND)
include(CMakeProject-pcre.cmake)
endif()
include(CMakeProject-sqlitecpp.cmake)
include(CMakeProject-modernjson.cmake)
include(CMakeProject-tomcrypt.cmake)
include(CMakeProject-tommath.cmake)
include(CMakeProject-png.cmake)
Expand Down
3 changes: 3 additions & 0 deletions extern/CMakeProject-modernjson.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

add_subdirectory(json)

1 change: 1 addition & 0 deletions extern/json
Submodule json added at fdecbf
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ list(APPEND SMDATA_LINK_LIB
"jpeg"
"sqlite3"
"SQLiteCpp"
"nlohmann_json"
)
include(../extern/CMakeProject-mmmagic.cmake)

Expand Down Expand Up @@ -538,6 +539,7 @@ list(APPEND SM_INCLUDE_DIRS
if(NOT APPLE)
list(APPEND SM_INCLUDE_DIRS
"${SM_EXTERN_DIR}/glew-1.5.8/include"
"${SM_EXTERN_DIR}/json/include"
"${SM_EXTERN_DIR}/jsoncpp/include"
"${SM_EXTERN_DIR}/zlib"
)
Expand Down

0 comments on commit 90a9cc4

Please sign in to comment.