Added support for ESP-IDF component build (closes #1562)

This commit is contained in:
baruch authored and Benoit Blanchon committed 2021-06-30 10:29:28 +02:00
1 parent ef7579394b
commit cb2c029e57
2 files changed
+8

No files matched your search

+7
View File
@@ -4,6 +4,13 @@
cmake_minimum_required(VERSION 3.3)
if(ESP_PLATFORM)
# Build ArduinoJson as an ESP-IDF component
idf_component_register(INCLUDE_DIRS src)
target_compile_definitions(${COMPONENT_LIB} INTERFACE ARDUINOJSON_EMBEDDED_MODE=1)
return()
endif()
project(ArduinoJson VERSION 6.18.0)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)