Files
openairinterface5g/nfapi/open-nFAPI/pnf/CMakeLists.txt
Rúben Soares Silva 0a5b9e5997 Move nFAPI CMakeLists build rules into their own subdirectories
The relevant block for each library is now located in the CMakeLists.txt in the same directory as its sources, instead of the root CMakeLists.txt

The libraries have been renamed to follow a lowercase naming

Signed-off-by: Rúben Soares Silva <rsilva@allbesmart.pt>
2026-05-28 09:29:37 +01:00

21 lines
786 B
CMake

# SPDX-License-Identifier: LicenseRef-CSSL-1.0
add_library(nfapi_pnf_lib
src/pnf.c
src/pnf_interface.c
src/pnf_p7.c
src/pnf_p7_interface.c)
target_link_libraries(nfapi_pnf_lib PRIVATE asn1_lte_rrc_hdrs asn1_nr_rrc_hdrs)
target_link_libraries(nfapi_pnf_lib PUBLIC nr_fapi_p7)
target_link_libraries(nfapi_pnf_lib PUBLIC nfapi_nr_lib nfapi_lte_lib)
if(OAI_WLS)
target_compile_definitions(nfapi_pnf_lib PRIVATE ENABLE_WLS)
target_link_libraries(nfapi_pnf_lib PUBLIC wls_integration_lib)
else()
target_compile_definitions(nfapi_pnf_lib PRIVATE ENABLE_SOCKET)
target_link_libraries(nfapi_pnf_lib PUBLIC nfapi_socket_lib)
endif()
target_include_directories(nfapi_pnf_lib PUBLIC public_inc)
target_include_directories(nfapi_pnf_lib PUBLIC inc)