16 lines
490 B
CMake
16 lines
490 B
CMake
find_package(NFNETLINK REQUIRED)
|
|
|
|
add_executable(packet_adapter
|
|
src/system.cpp
|
|
src/packet_stat.cpp
|
|
src/packet_handle.cpp
|
|
src/packet_adapter.cpp)
|
|
|
|
target_include_directories(packet_adapter PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include/)
|
|
|
|
target_link_libraries(packet_adapter common)
|
|
target_link_libraries(packet_adapter pthread)
|
|
target_link_libraries(packet_adapter MESA_field_stat)
|
|
|
|
install(TARGETS packet_adapter RUNTIME DESTINATION bin COMPONENT Program)
|
|
add_subdirectory(test) |