19 lines
538 B
CMake
Raw Normal View History

2023-10-26 21:54:29 -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-26 21:54:29 -06:00
find_package(PcapPlusPlus CONFIG REQUIRED)
2024-08-05 10:53:47 +08:00
# find_package(DPDK REQUIRED)
2023-10-26 21:54:29 -06:00
message(STATUS "Using Pcap++ ${PcapPlusPlus_VERSION}")
message(STATUS "Include dir: ${PcapPlusPlus_INCLUDE_DIR}")
add_executable(PcapSender ${sender_src_list})
2024-08-05 10:53:47 +08:00
target_link_libraries(
PcapSender
PUBLIC ${LINK_LIB_LIST}
PUBLIC PcapPlusPlus::Pcap++ # PUBLIC DPDK::DPDK
)
2023-10-26 21:54:29 -06:00
# target_link_libraries(PcapSender PUBLIC PcapPlusPlus::Pcap++)