17 lines
528 B
CMake
17 lines
528 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++)
|
|
|