🔧 build(infra build): refactor build parameters

This commit is contained in:
yangwei
2024-08-29 17:59:19 +08:00
parent 4060f1bb09
commit cc2d2be324
9 changed files with 37 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
# build libdebug_plugin.so
add_library(debug_plugin SHARED debug_plugin.c)
target_link_libraries(debug_plugin stellar_devel session_manager packet)
target_link_libraries(debug_plugin stellar_devel session_manager packet_parser)
target_include_directories(debug_plugin PUBLIC ${CMAKE_SOURCE_DIR}/include/)
target_include_directories(debug_plugin PUBLIC ${CMAKE_SOURCE_DIR}/infra/core/utils)
set_target_properties(debug_plugin PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map")

View File

@@ -1,5 +1,5 @@
add_executable(packet_tool packet_tool.c)
target_link_libraries(packet_tool packet pcap)
target_link_libraries(packet_tool packet_parser pcap)
file(COPY split_pcap.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY cmp_layers.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR})