1if (NOT (FREERTOS_PLUS_TCP_NETWORK_IF STREQUAL "LIBSLIRP") ) 2 return() 3endif() 4 5if(NOT TARGET slirp) 6 message(FATAL_ERROR "For FREERTOS_PLUS_TCP_NETWORK_IF=LIBSLIRP must have a target for the slirp") 7endif() 8#------------------------------------------------------------------------------ 9add_library( freertos_plus_tcp_network_if STATIC ) 10 11target_sources( freertos_plus_tcp_network_if 12 PRIVATE 13 MBuffNetifBackendLibslirp.c 14 MBuffNetworkInterface.c 15) 16 17target_link_libraries(freertos_plus_tcp_network_if 18 PRIVATE 19 slirp # TODO 20) 21 22target_link_libraries( freertos_plus_tcp_network_if 23 PUBLIC 24 freertos_plus_tcp_port 25 freertos_plus_tcp_network_if_common 26 PRIVATE 27 freertos_kernel 28 freertos_plus_tcp 29) 30