cmake_minimum_required(VERSION 3.16.0)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
add_compile_definitions(PLATFORM_ESPIDF=1)
add_compile_definitions(MQTT_OUTPUT_RINGBUF_SIZE=2048)
add_compile_definitions(MQTT_VAR_HEADER_BUFFER_LEN=256)
add_compile_definitions(MQTT_REQ_MAX_IN_FLIGHT=16)
add_compile_definitions(LWIP_NOASSERT=1)
add_definitions( -DUSER_SW_VER="$ENV{APP_VERSION}" )
add_definitions( -DOBK_VARIANT=$ENV{OBK_VARIANT} )
include_directories("$ENV{IDF_PATH}/../../libraries/berry/src")
include_directories("$ENV{IDF_PATH}/../../include")
set(PROJECT_VER "$ENV{APP_VERSION}")
project(OpenBeken)
idf_build_set_property(COMPILE_OPTIONS "-Wno-format-truncation" APPEND)
