add_library(packet_parser
    packet_utils.c
    packet_parser.c
    packet_builder.c
    packet_filter.c
    packet_dump.c
    checksum.c)
target_include_directories(packet_parser PUBLIC ${CMAKE_CURRENT_LIST_DIR})
target_include_directories(packet_parser PUBLIC ${CMAKE_SOURCE_DIR}/deps/uthash)
target_include_directories(packet_parser PUBLIC ${CMAKE_SOURCE_DIR}/deps/logger)
target_include_directories(packet_parser PUBLIC ${CMAKE_SOURCE_DIR}/include)
target_include_directories(packet_parser PUBLIC ${CMAKE_SOURCE_DIR}/infra/core)
target_link_libraries(packet_parser tuple logger dablooms)

add_subdirectory(test)