xref: /FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/libslirp/CMakeLists.txt (revision 89269454b9187e8693e94eb3f6cb0df5da9ee4c3)
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