xref: /FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/WinPCap/CMakeLists.txt (revision 89269454b9187e8693e94eb3f6cb0df5da9ee4c3)
1if (NOT ( (FREERTOS_PLUS_TCP_NETWORK_IF STREQUAL "WIN_PCAP") ) )
2    return()
3endif()
4
5find_package(PCAP REQUIRED)
6
7#------------------------------------------------------------------------------
8add_library( freertos_plus_tcp_network_if STATIC )
9
10target_sources( freertos_plus_tcp_network_if
11  PRIVATE
12    FaultInjection.c
13    NetworkInterface.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    ${PCAP_LIBRARY}
24)
25
26