mirror of https://github.com/Xaymar/obs-StreamFX
cmake: Add optional dependency nlohmann::json
This commit is contained in:
parent
1107c1e390
commit
6d3b0f1266
|
@ -4,3 +4,6 @@
|
||||||
[submodule "third-party/nvidia-arsdk"]
|
[submodule "third-party/nvidia-arsdk"]
|
||||||
path = third-party/nvidia-arsdk
|
path = third-party/nvidia-arsdk
|
||||||
url = https://github.com/NVIDIA/BROADCAST-AR-SDK.git
|
url = https://github.com/NVIDIA/BROADCAST-AR-SDK.git
|
||||||
|
[submodule "third-party/nlohmann-json"]
|
||||||
|
path = third-party/nlohmann-json
|
||||||
|
url = https://github.com/nlohmann/json.git
|
||||||
|
|
|
@ -467,6 +467,11 @@ if(REQUIRE_CURL)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# JSON
|
||||||
|
if(REQUIRE_JSON)
|
||||||
|
set(JSON_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/third-party/nlohmann-json/single_include")
|
||||||
|
endif()
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Code
|
# Code
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -523,6 +528,13 @@ if(REQUIRE_CURL)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
## Dependency: nlohmann_json
|
||||||
|
if(REQUIRE_JSON)
|
||||||
|
list(APPEND PROJECT_INCLUDE_DIRS
|
||||||
|
${JSON_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
## Data & Source
|
## Data & Source
|
||||||
list(APPEND PROJECT_DATA
|
list(APPEND PROJECT_DATA
|
||||||
"data/locale/en-US.ini"
|
"data/locale/en-US.ini"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit db78ac1d7716f56fc9f1b030b715f872f93964e4
|
Loading…
Reference in New Issue