xref: /FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/pic32mzef/CMakeLists.txt (revision 89269454b9187e8693e94eb3f6cb0df5da9ee4c3)
1if (NOT ( (FREERTOS_PLUS_TCP_NETWORK_IF STREQUAL "PIC32MZEF_ETH") OR
2          (FREERTOS_PLUS_TCP_NETWORK_IF STREQUAL "PIC32MZEF_WIFI") ) )
3    return()
4endif()
5
6#------------------------------------------------------------------------------
7add_library( freertos_plus_tcp_network_if STATIC )
8
9# TODO What about BufferAllocation_2.c here?
10target_sources( freertos_plus_tcp_network_if
11  PRIVATE
12    $<$<STREQUAL:${FREERTOS_PLUS_TCP_NETWORK_IF},PIC32MZEF_ETH>:NetworkInterface_eth.c>
13    $<$<STREQUAL:${FREERTOS_PLUS_TCP_NETWORK_IF},PIC32MZEF_WIFI>:NetworkInterface_wifi.c>
14)
15
16target_link_libraries( freertos_plus_tcp_network_if
17  PUBLIC
18    freertos_plus_tcp_port
19    freertos_plus_tcp_network_if_common
20  PRIVATE
21    freertos_kernel
22    freertos_plus_tcp
23)
24