xref: /FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/esp32/CMakeLists.txt (revision 89269454b9187e8693e94eb3f6cb0df5da9ee4c3)
1if (NOT (FREERTOS_PLUS_TCP_NETWORK_IF STREQUAL "ESP32") )
2    return()
3endif()
4
5if(NOT TARGET esp32_lib)
6    message(FATAL_ERROR "For FREERTOS_PLUS_TCP_NETWORK_IF=ESP32 must have a target for the esp32_lib")
7endif()
8#------------------------------------------------------------------------------
9add_library( freertos_plus_tcp_network_if STATIC )
10
11target_sources( freertos_plus_tcp_network_if
12  PRIVATE
13    NetworkInterface.c
14)
15
16target_link_libraries( freertos_plus_tcp_network_if
17  PRIVATE
18    esp32_lib # TODO
19)
20
21target_link_libraries( freertos_plus_tcp_network_if
22  PUBLIC
23    freertos_plus_tcp_port
24    freertos_plus_tcp_network_if_common
25  PRIVATE
26    freertos_kernel
27    freertos_plus_tcp
28)
29