Add json dependency

This commit is contained in:
illyum 2024-08-08 23:47:31 -06:00
parent 1c4c092967
commit fa9216a110

View File

@ -45,11 +45,21 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(glew)
FetchContent_Declare(
json
GIT_REPOSITORY https://github.com/nlohmann/json.git
GIT_TAG master
GIT_SHALLOW ON
GIT_PROGRESS ON
)
FetchContent_MakeAvailable(json)
target_include_directories(${PROJECT_NAME} PRIVATE
${imgui_SOURCE_DIR}
${imgui_SOURCE_DIR}/backends
${glfw_SOURCE_DIR}/include
${glew_SOURCE_DIR}/include
${json_SOURCE_DIR}/include
)
target_sources(${PROJECT_NAME} PRIVATE