Browse Source

test: arduinojson header

pull/2569/head
Maxim Prokhorov 1 year ago
parent
commit
24c3ff8954
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      code/test/unit/CMakeLists.txt

+ 15
- 0
code/test/unit/CMakeLists.txt View File

@ -73,6 +73,21 @@ FetchContent_Declare(
FetchContent_MakeAvailable(esp8266git)
FetchContent_GetProperties(esp8266git SOURCE_DIR)
set(arduinojson_version v5.13.5)
FetchContent_Declare(
ArduinoJson
GIT_REPOSITORY https://github.com/bblanchon/ArduinoJson
GIT_TAG ${arduinojson_version}
GIT_CONFIG core.autocrlf=false core.eol=lf
SOURCE_DIR ${CMAKE_SOURCE_DIR}/cache/arduinojson-${arduinojson_version}-src
SOURCE_SUBDIR src
SUBBUILD_DIR ${CMAKE_SOURCE_DIR}/cache/arduinojson-${arduinojson_version}-subbuild
)
FetchContent_MakeAvailable(ArduinoJson)
FetchContent_GetProperties(ArduinoJson SOURCE_DIR)
# mock'ed Arduino Core headers sometimes expect to be included with some pre-requisites, which we obviously don't have
add_library(common INTERFACE)
target_compile_options(common INTERFACE


Loading…
Cancel
Save