Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "backend/external/uwebsockets"]
path = backend/external/uwebsockets
url = https://github.com/uNetworking/uWebSockets.git
[submodule "backend/external/json"]
path = backend/external/json
url = https://github.com/nlohmann/json.git
7 changes: 4 additions & 3 deletions backend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(tec.h)

# https://json.nlohmann.me/integration/cmake/#fetchcontent
FetchContent_Declare(nlohmann_json URL https://github.com/nlohmann/json/releases/download/v3.12.0/json.tar.xz)
FetchContent_MakeAvailable(nlohmann_json)
# nlohmann/json via git submodule (backend/external/json)
set(JSON_BuildTests OFF CACHE INTERNAL "")
set(JSON_Install OFF CACHE INTERNAL "")
add_subdirectory(external/json)

find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)
Expand Down
1 change: 1 addition & 0 deletions backend/external/json
Submodule json added at 55f936