1add_library( freertos_plus_tcp_utilities STATIC ) 2 3target_sources( freertos_plus_tcp_utilities 4 PRIVATE 5 tcp_utilities/include/tcp_dump_packets.h 6 tcp_utilities/include/tcp_mem_stats.h 7 tcp_utilities/include/tcp_netstat.h 8 9 tcp_utilities/tcp_dump_packets.c 10 tcp_utilities/tcp_mem_stats.c 11 tcp_utilities/tcp_netstat.c 12) 13 14# Note: Have to make system due to compiler warnings in header files. 15target_include_directories( freertos_plus_tcp_utilities SYSTEM 16 PUBLIC 17 tcp_utilities/include 18) 19 20#TODO(phelter): Investigate and fix in freertos_plus_tcp if not already fixed. 21target_compile_options( freertos_plus_tcp_utilities 22 PRIVATE 23 $<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-extra-semi-stmt> 24 $<$<COMPILE_LANG_AND_ID:C,Clang,GNU>:-Wno-format> 25 $<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-missing-variable-declarations> 26 $<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-padded> 27 $<$<COMPILE_LANG_AND_ID:C,Clang,GNU>:-Wno-unused-but-set-variable> 28 $<$<COMPILE_LANG_AND_ID:C,Clang,GNU>:-Wno-unused-function> 29 $<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-unused-macros> 30 $<$<COMPILE_LANG_AND_ID:C,Clang,GNU>:-Wno-unused-variable> 31) 32 33target_link_libraries( freertos_plus_tcp_utilities 34 PRIVATE 35 freertos_kernel 36 freertos_plus_tcp 37) 38