Commit deacf439 authored by Bartosz Podrygajlo's avatar Bartosz Podrygajlo

CMakeLists for common/utils/LOG

parent d6f425ad
...@@ -650,7 +650,6 @@ add_library(HASHTABLE ...@@ -650,7 +650,6 @@ add_library(HASHTABLE
include_directories(${OPENAIR_DIR}/common/utils/hashtable) include_directories(${OPENAIR_DIR}/common/utils/hashtable)
add_library(UTIL add_library(UTIL
${OPENAIR_DIR}/common/utils/LOG/log.c
${OPENAIR_DIR}/common/utils/LOG/vcd_signal_dumper.c ${OPENAIR_DIR}/common/utils/LOG/vcd_signal_dumper.c
${OPENAIR2_DIR}/UTIL/MATH/oml.c ${OPENAIR2_DIR}/UTIL/MATH/oml.c
${OPENAIR2_DIR}/UTIL/OPT/probe.c ${OPENAIR2_DIR}/UTIL/OPT/probe.c
...@@ -662,8 +661,6 @@ add_library(UTIL ...@@ -662,8 +661,6 @@ add_library(UTIL
) )
if (ENABLE_LTTNG) if (ENABLE_LTTNG)
find_package(LTTngUST 2.3.8 EXACT REQUIRED) find_package(LTTngUST 2.3.8 EXACT REQUIRED)
target_sources(UTIL PRIVATE common/utils/LOG/lttng-tp.c)
target_link_libraries(UTIL PUBLIC lttng-ust)
else() else()
message(STATUS "LTTNG support disabled") message(STATUS "LTTNG support disabled")
endif() endif()
...@@ -674,7 +671,7 @@ if (cap_FOUND) ...@@ -674,7 +671,7 @@ if (cap_FOUND)
target_link_libraries(UTIL PRIVATE cap) target_link_libraries(UTIL PRIVATE cap)
target_compile_definitions(UTIL PRIVATE HAVE_LIB_CAP) target_compile_definitions(UTIL PRIVATE HAVE_LIB_CAP)
endif() endif()
target_link_libraries(UTIL PUBLIC ${T_LIB} pthread) target_link_libraries(UTIL PUBLIC ${T_LIB} pthread LOG)
set(SECURITY_SRC set(SECURITY_SRC
${OPENAIR3_DIR}/SECU/secu_defs.c ${OPENAIR3_DIR}/SECU/secu_defs.c
...@@ -1207,10 +1204,9 @@ set(PHY_MEX_UE ...@@ -1207,10 +1204,9 @@ set(PHY_MEX_UE
${OPENAIR1_DIR}/PHY/TOOLS/simde_operations.c ${OPENAIR1_DIR}/PHY/TOOLS/simde_operations.c
${OPENAIR1_DIR}/PHY/LTE_UE_TRANSPORT/dlsch_llr_computation_avx2.c ${OPENAIR1_DIR}/PHY/LTE_UE_TRANSPORT/dlsch_llr_computation_avx2.c
${OPENAIR1_DIR}/PHY/LTE_ESTIMATION/lte_ue_measurements.c ${OPENAIR1_DIR}/PHY/LTE_ESTIMATION/lte_ue_measurements.c
${OPENAIR_DIR}/common/utils/LOG/log.c
) )
add_library(PHY_MEX ${PHY_MEX_UE}) add_library(PHY_MEX ${PHY_MEX_UE})
target_link_libraries(PHY_MEX PRIVATE asn1_lte_rrc_hdrs) target_link_libraries(PHY_MEX PRIVATE asn1_lte_rrc_hdrs LOG)
#Layer 2 library #Layer 2 library
##################### #####################
...@@ -1949,10 +1945,9 @@ set(CMAKE_MODULE_PATH "${OPENAIR_DIR}/cmake_targets/tools/MODULES" "${CMAKE_MODU ...@@ -1949,10 +1945,9 @@ set(CMAKE_MODULE_PATH "${OPENAIR_DIR}/cmake_targets/tools/MODULES" "${CMAKE_MODU
# add executables for operation # add executables for operation
################################# #################################
add_library(minimal_lib add_library(minimal_lib
${OPENAIR_DIR}/common/utils/LOG/log.c
${OPENAIR_DIR}/common/utils/minimal_stub.c ${OPENAIR_DIR}/common/utils/minimal_stub.c
) )
target_link_libraries(minimal_lib pthread dl ${T_LIB}) target_link_libraries(minimal_lib PUBLIC pthread dl ${T_LIB} LOG)
add_executable(nfapi_test add_executable(nfapi_test
${OPENAIR_DIR}/openair2/NR_PHY_INTERFACE/nfapi_5g_test.c ${OPENAIR_DIR}/openair2/NR_PHY_INTERFACE/nfapi_5g_test.c
......
...@@ -11,3 +11,4 @@ endif() ...@@ -11,3 +11,4 @@ endif()
add_subdirectory(T) add_subdirectory(T)
add_subdirectory(nr) add_subdirectory(nr)
add_subdirectory(LOG)
set(log_sources log.c)
if (ENABLE_LTTNG)
set(log_sources ${log_sources} lttng-tp.c)
endif()
add_library(LOG ${log_sources})
target_include_directories(LOG PUBLIC .)
target_link_libraries(LOG PRIVATE ${T_LIB})
if (ENABLE_LTTNG)
target_link_libraries(LOG PUBLIC lttng-ust)
endif()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment