summaryrefslogtreecommitdiff
path: root/platform/CMakeLists.txt
blob: 48fc431be16e3613b2cab1d6d033ef85bf0560d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)