TSG-7784 PacketAdapter支持CI自动构建RPM; 修改代码结构
This commit is contained in:
10
platform/CMakeLists.txt
Normal file
10
platform/CMakeLists.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
find_package(NFNETLINK REQUIRED)
|
||||
|
||||
add_executable(packetadapter src/inject_pkt.c src/system.c src/packet_adapter.c)
|
||||
|
||||
target_include_directories(packetadapter PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include/)
|
||||
|
||||
target_link_libraries(packetadapter common)
|
||||
target_link_libraries(packetadapter netfilter_queue)
|
||||
|
||||
install(TARGETS packetadapter RUNTIME DESTINATION bin COMPONENT Program)
|
||||
Reference in New Issue
Block a user