esp-idf/examples/protocols/sockets/tcp_client/main/CMakeLists.txt

14 lines
401 B
CMake
Raw Normal View History

if(${IDF_TARGET} STREQUAL "linux")
2023-02-13 04:12:04 -05:00
set(requires esp_stubs protocol_examples_common)
endif()
if("${CONFIG_EXAMPLE_IPV4}" STREQUAL y)
set(tcp_client_ip tcp_client_v4.c)
else()
set(tcp_client_ip tcp_client_v6.c)
endif()
idf_component_register(SRCS "tcp_client_main.c" "${tcp_client_ip}"
INCLUDE_DIRS "."
REQUIRES ${requires})