Add packet helpers

This commit is contained in:
luwenpeng
2023-12-18 16:51:17 +08:00
parent dda0cdf104
commit 2e56bd810c
7 changed files with 1110 additions and 25 deletions

View File

@@ -2,7 +2,7 @@
# packet
###############################################################################
add_library(packet packet.cpp)
add_library(packet packet.cpp packet_helpers.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)
@@ -16,5 +16,10 @@ add_executable(gtest_packet gtest_packet.cpp)
target_include_directories(gtest_packet PUBLIC ${CMAKE_CURRENT_LIST_DIR})
target_link_libraries(gtest_packet packet gtest)
add_executable(gtest_packet_helpers gtest_packet_helpers.cpp)
target_include_directories(gtest_packet_helpers PUBLIC ${CMAKE_CURRENT_LIST_DIR})
target_link_libraries(gtest_packet_helpers packet gtest)
include(GoogleTest)
gtest_discover_tests(gtest_packet)
gtest_discover_tests(gtest_packet)
gtest_discover_tests(gtest_packet_helpers)