2024-08-05 10:53:47 +08:00

19 lines
538 B
CMake

include_directories(../include)
file(GLOB sender_src_list ./*.cpp ./*.h ../include/*.h)
message(STATUS ${sender_src_list})
find_package(PcapPlusPlus CONFIG REQUIRED)
# find_package(DPDK REQUIRED)
message(STATUS "Using Pcap++ ${PcapPlusPlus_VERSION}")
message(STATUS "Include dir: ${PcapPlusPlus_INCLUDE_DIR}")
add_executable(PcapSender ${sender_src_list})
target_link_libraries(
PcapSender
PUBLIC ${LINK_LIB_LIST}
PUBLIC PcapPlusPlus::Pcap++ # PUBLIC DPDK::DPDK
)
# target_link_libraries(PcapSender PUBLIC PcapPlusPlus::Pcap++)