xref: /FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/LPC17xx/CMakeLists.txt (revision 89269454b9187e8693e94eb3f6cb0df5da9ee4c3)
1if (NOT (FREERTOS_PLUS_TCP_NETWORK_IF STREQUAL "LPC17xx") )
2    return()
3endif()
4
5if(NOT TARGET lpc17xx_driver)
6    message(FATAL_ERROR "For FREERTOS_PLUS_TCP_NETWORK_IF=LPC17xx must have a target for the lpc17xx_driver")
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    lpc17xx_driver # 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