mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-21 06:22:21 +02:00
feat(examples): Add example of using mqtt client on linux
This commit is contained in:
8
examples/mqtt/main/CMakeLists.txt
Normal file
8
examples/mqtt/main/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
set(requires "")
|
||||
if(${IDF_TARGET} STREQUAL "linux")
|
||||
list(APPEND requires esp_stubs esp-tls protocol_examples_common mqtt)
|
||||
endif()
|
||||
idf_component_register(SRCS "app_main.c"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES ${requires})
|
||||
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
Reference in New Issue
Block a user