summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
author童宗振 <[email protected]>2023-12-27 04:05:09 +0000
committer陆秋文 <[email protected]>2023-12-27 04:05:09 +0000
commitb269cd473f22c60203ed50804dc7a26638e6964f (patch)
tree09bba165529645cafa57243c78ea58d679b946dd /examples
parent8711dcbb38389e8a3a2fc5ad3f33408a5db5bb2d (diff)
build DPDK as a support library.
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index ebb434f..3b0193f 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,7 +1,4 @@
-find_package(DPDK REQUIRED)
-include_directories(${CMAKE_SOURCE_DIR}/include)
-include_directories(${DPDK_INCLUDE_DIR})
-add_definitions(${DPDK_C_PREDEFINED})
+include_directories(${CMAKE_SOURCE_DIR}/include)
add_executable(mrtest-l2fwd l2fwd.c)
target_link_libraries(mrtest-l2fwd marsio pthread)
@@ -25,4 +22,4 @@ target_link_libraries(mrtest-vxlan-link-id-inject marsio pthread pcap)
#target_link_libraries(mrtest-smartoffload marsio pthread pcap)
add_executable(mrtest-l2fwd-nf l2fwd-nf.c)
-target_link_libraries(mrtest-l2fwd-nf marsio pthread pcap)
+target_link_libraries(mrtest-l2fwd-nf marsio pthread pcap libdpdk)