Skip to content

Commit 5ae27d2

Browse files
committed
Added nlohmann-json as submodule
1 parent 76836ba commit 5ae27d2

File tree

4 files changed

+24783
-0
lines changed

4 files changed

+24783
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ set(SOURCES
1111
)
1212

1313
add_subdirectory(${PROJECT_SOURCE_DIR}/modules/minitrace)
14+
add_subdirectory(${PROJECT_SOURCE_DIR}/modules/nlohmann)
1415
add_subdirectory(${PROJECT_SOURCE_DIR}/modules/vkmGL)
1516

1617
add_executable(${PROJECT_NAME} ${SOURCES})
@@ -21,6 +22,7 @@ add_subdirectory(${PROJECT_SOURCE_DIR}/src)
2122
# Link the main target with external libraries
2223
target_link_libraries(${PROJECT_NAME}
2324
minitrace
25+
nlohmannjson
2426
vkmGL
2527
glfw
2628
imgui

modules/nlohmann/CMakeLists.txt

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
cmake_minimum_required(VERSION 3.21.2)
2+
project(nlohmannjson VERSION 0.1.0 LANGUAGES CXX)
3+
4+
# Set the C++ standard to 17
5+
set(CMAKE_CXX_STANDARD 17)
6+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
7+
set(CMAKE_CXX_EXTENSIONS OFF)
8+
9+
message("[BUILDING:NLOHMANN-JSON] Nlohmann-JSON")
10+
11+
add_library(${PROJECT_NAME} STATIC json.cpp)
12+
13+
target_include_directories(${PROJECT_NAME} PUBLIC
14+
${PROJECT_SOURCE_DIR}/
15+
)

modules/nlohmann/json.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "json.hpp"

0 commit comments

Comments
 (0)