add_library( freertos_plus_tcp_utilities STATIC ) target_sources( freertos_plus_tcp_utilities PRIVATE tcp_utilities/include/tcp_dump_packets.h tcp_utilities/include/tcp_mem_stats.h tcp_utilities/include/tcp_netstat.h tcp_utilities/tcp_dump_packets.c tcp_utilities/tcp_mem_stats.c tcp_utilities/tcp_netstat.c ) # Note: Have to make system due to compiler warnings in header files. target_include_directories( freertos_plus_tcp_utilities SYSTEM PUBLIC tcp_utilities/include ) #TODO(phelter): Investigate and fix in freertos_plus_tcp if not already fixed. target_compile_options( freertos_plus_tcp_utilities PRIVATE $<$:-Wno-extra-semi-stmt> $<$:-Wno-format> $<$:-Wno-missing-variable-declarations> $<$:-Wno-padded> $<$:-Wno-unused-but-set-variable> $<$:-Wno-unused-function> $<$:-Wno-unused-macros> $<$:-Wno-unused-variable> ) target_link_libraries( freertos_plus_tcp_utilities PRIVATE freertos_kernel freertos_plus_tcp )