summaryrefslogtreecommitdiff
path: root/common/CMakeLists.txt
blob: 6a9adccc3ae46555629609ec23bea236a8a79352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 add_library(
        common src/tfe_utils.cpp src/tfe_types.cpp src/tfe_future.cpp src/tfe_http.cpp src/tfe_plugin.cpp
        src/tfe_rpc.cpp src/tfe_cmsg.cpp src/kafka.cpp src/tfe_resource.cpp src/tfe_scan.cpp
        src/tfe_pkt_util.cpp src/tfe_tcp_restore.cpp src/packet_construct.cpp 
        src/tap.cpp src/io_uring.cpp src/intercept_policy.cpp src/tfe_fieldstat.cpp
        src/tuple.cpp src/tfe_packet_io.cpp src/tfe_session_table.cpp 
        src/tfe_ctrl_packet.cpp src/packet.cpp src/tfe_packet_io_fs.cpp
        src/mpack.cpp src/dablooms.cpp src/murmur.cpp src/timestamp.cpp src/http_healthcheck.cpp)
target_include_directories(common PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
target_include_directories(common PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../bpf/)
target_include_directories(common PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../platform/include/internal)
target_link_libraries(common PUBLIC libevent-static libevent-static-openssl libevent-static-pthreads rdkafka)
target_link_libraries(common PUBLIC MESA_handle_logger cjson bpf_obj mrzcpd MESA_prof_load maatframe fieldstat4)
target_link_libraries(common PUBLIC pthread uuid)

if (SUPPORT_LIBURING)
    target_link_libraries(common PUBLIC uring)
endif()

add_subdirectory(test)