Add packet parser

This commit is contained in:
luwenpeng
2023-12-15 18:57:13 +08:00
parent 7653d646d3
commit dda0cdf104
5 changed files with 4303 additions and 1 deletions

20
src/packet/CMakeLists.txt Normal file
View File

@@ -0,0 +1,20 @@
###############################################################################
# packet
###############################################################################
add_library(packet packet.cpp)
target_include_directories(packet PUBLIC ${CMAKE_SOURCE_DIR}/src/packet)
target_include_directories(packet PUBLIC ${CMAKE_SOURCE_DIR}/src/tuple)
target_include_directories(packet PUBLIC ${CMAKE_SOURCE_DIR}/deps/uthash)
target_link_libraries(packet tuple)
###############################################################################
# gtest
###############################################################################
add_executable(gtest_packet gtest_packet.cpp)
target_include_directories(gtest_packet PUBLIC ${CMAKE_CURRENT_LIST_DIR})
target_link_libraries(gtest_packet packet gtest)
include(GoogleTest)
gtest_discover_tests(gtest_packet)