mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
This commit introduces a set of component libraries that can be used to implement packet processing library for 7.2 fronthaul interface. Signed-off-by: Bartosz Podrygajlo <bartosz.podrygajlo@openairinterface.org> and assisted-by Gemini
28 lines
1012 B
CMake
28 lines
1012 B
CMake
# SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
|
|
add_library(fh_timer fh_timer.c)
|
|
target_include_directories(fh_timer PUBLIC ./)
|
|
target_include_directories(fh_timer PRIVATE ${dpdk_INCLUDE_DIRS})
|
|
target_link_libraries(fh_timer PRIVATE ${dpdk_LIBRARIES} m pthread)
|
|
target_link_libraries(fh_timer PUBLIC UTIL)
|
|
|
|
add_library(fh_send fh_send.c)
|
|
target_include_directories(fh_send PUBLIC ./)
|
|
target_include_directories(fh_send PRIVATE ${dpdk_INCLUDE_DIRS})
|
|
target_link_libraries(fh_send PUBLIC fh_timer UTIL)
|
|
target_link_libraries(fh_send PRIVATE ${dpdk_LIBRARIES})
|
|
|
|
add_library(fh_recv fh_recv.c)
|
|
target_include_directories(fh_recv PUBLIC ./)
|
|
target_include_directories(fh_recv PRIVATE ${dpdk_INCLUDE_DIRS})
|
|
target_link_libraries(fh_recv PRIVATE ${dpdk_LIBRARIES})
|
|
target_link_libraries(fh_recv PUBLIC fh_timer UTIL)
|
|
|
|
if (ENABLE_TESTS)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
add_library(fh_core INTERFACE)
|
|
target_link_libraries(fh_core INTERFACE fh_timer fh_send fh_recv)
|
|
target_include_directories(fh_core INTERFACE ./)
|