21 lines
1.2 KiB
CMake
21 lines
1.2 KiB
CMake
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/tfe_kafka_logger.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)
|
|
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 fieldstat3)
|
|
target_link_libraries(common PUBLIC pthread)
|
|
|
|
if (SUPPORT_LIBURING)
|
|
target_link_libraries(common PUBLIC uring)
|
|
endif()
|
|
|
|
add_subdirectory(test)
|