增加pcap解析工具(#4033 #4034)

This commit is contained in:
a839419160
2024-11-22 17:43:15 +08:00
committed by GitHub
parent 8868320301
commit 326b475beb
5 changed files with 405 additions and 0 deletions

View File

@@ -463,6 +463,15 @@ if(ENABLE_VIDEOSTACK)
endif ()
endif ()
if(NOT PCAP_FOUND AND ENABLE_TESTS)
find_package(PCAP QUIET)
if(PCAP_FOUND)
include_directories(SYSTEM ${PCAP_INCLUDE_DIRS})
list(APPEND LINK_LIBRARIES ${PCAP_LIBRARIES})
message(STATUS "found library: ${PCAP_LIBRARIES}")
endif()
endif()
# ----------------------------------------------------------------------------
# Solution folders:
# ----------------------------------------------------------------------------