20 lines
546 B
CMake
Raw Normal View History

2023-10-29 17:16:03 -06:00
include_directories(../include)
file(GLOB sender_src_list ./*.cpp ./*.h ../include/*.h)
2024-08-05 10:53:47 +08:00
message(STATUS ${sender_src_list})
2023-10-29 17:16:03 -06:00
find_package(PcapPlusPlus CONFIG REQUIRED)
2024-08-05 10:53:47 +08:00
# find_package(DPDK REQUIRED)
2023-10-29 17:16:03 -06:00
message(STATUS "Using Pcap++ ${PcapPlusPlus_VERSION}")
message(STATUS "Include dir: ${PcapPlusPlus_INCLUDE_DIR}")
add_executable(PcapRawSender ${sender_src_list})
2024-08-05 10:53:47 +08:00
target_link_libraries(
PcapRawSender
PUBLIC ${LINK_LIB_LIST}
PUBLIC PcapPlusPlus::Pcap++
# PUBLIC DPDK::DPDK
)
2023-10-29 17:16:03 -06:00
# target_link_libraries(PcapSender PUBLIC PcapPlusPlus::Pcap++)