From 8176f8b811b16ca6beffbf5084d18c17b5ea3355 Mon Sep 17 00:00:00 2001 From: "Sergey.Kostanbaev" Date: Thu, 14 Dec 2017 11:46:19 +0300 Subject: initial libxtrx support --- Transceiver52M/CMakeLists.txt | 67 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Transceiver52M/CMakeLists.txt (limited to 'Transceiver52M/CMakeLists.txt') diff --git a/Transceiver52M/CMakeLists.txt b/Transceiver52M/CMakeLists.txt new file mode 100644 index 0000000..6c012d2 --- /dev/null +++ b/Transceiver52M/CMakeLists.txt @@ -0,0 +1,67 @@ +if(NOT TRANS_FULL_VERSION) + add_definitions(-DNO_RESAMPLER) + add_definitions(-DNO_MULTIARFCN) +endif() + + +add_subdirectory(x86) +include_directories(common) +include_directories(".") + +set(COMMON_FILES + radioInterface.cpp + radioVector.cpp + radioClock.cpp + radioBuffer.cpp + sigProcLib.cpp + signalVector.cpp + Transceiver.cpp) + +set(libtransceiver_files + Resampler.cpp + ${COMMON_FILES}) + +if(TRANS_FULL_VERSION) + set(libtransceiver_files + ${libtransceiver_files} + radioInterfaceResamp.cpp + radioInterfaceMulti.cpp + ChannelizerBase.cpp + Channelizer.cpp + Synthesis.cpp + common/fft.c + radioInterfaceDiversity.cpp) +endif(TRANS_FULL_VERSION) + +set(noinst_HEADERS + Complex.h + radioInterface.h + radioVector.h + radioClock.h + radioDevice.h + radioBuffer.h + sigProcLib.h + signalVector.h + Transceiver.h + USRPDevice.h + Resampler.h + ChannelizerBase.h + Channelizer.h + Synthesis.h + common/convolve.h + common/convert.h + common/scale.h + common/mult.h + common/fft.h) + +add_library(transceiver ${libtransceiver_files}) + + +set(DEVICE XTRXDevice.cpp) +set(DEVICE_LIBS ${XTRX_LIBRARIES}) +set(DEVICE_INC ${XTRX_INCLUDES}) + +include_directories(${DEVICE_INC}) +add_executable(osmo-trx osmo-trx.cpp ${DEVICE}) +target_link_libraries(osmo-trx transceiver arch GSM common ${sqlite3} ${FFTW_LIBRARIES} ${DEVICE_LIBS} pthread dl) + -- cgit v1.2.3