20 lines
546 B
CMake
20 lines
546 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(PcapRawSender ${sender_src_list})
|
|
|
|
target_link_libraries(
|
|
PcapRawSender
|
|
PUBLIC ${LINK_LIB_LIST}
|
|
PUBLIC PcapPlusPlus::Pcap++
|
|
# PUBLIC DPDK::DPDK
|
|
)
|
|
# target_link_libraries(PcapSender PUBLIC PcapPlusPlus::Pcap++)
|