ESP-IDF-Component-Jannex/CMakeLists.txt

28 lines
667 B
CMake

file(GLOB_RECURSE SRCS
"src/*.c" # Include all .c files in src directory
"src/api/*.c" # Include all .c files in src/api directory
)
idf_component_register(
SRCS "${SRCS}"
INCLUDE_DIRS "include"
REQUIRES
app_update
esp_http_client
esp_https_ota
app_update
nvs_flash
esp_http_client
mbedtls
esp_netif
esp_http_server
esp_wifi
lwip
)
set_target_properties(${COMPONENT_LIB} PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/include"
)
idf_build_set_property(LINK_OPTIONS "-Wl,--wrap=esp_panic_handler" APPEND)