2017-10-22 06:01:04 -04:00
|
|
|
project (sdrbase)
|
|
|
|
|
2019-05-02 10:56:07 -04:00
|
|
|
if(WIN32)
|
2019-05-23 10:01:06 -04:00
|
|
|
set(OPUS_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/external/windows/libopus/include")
|
|
|
|
set(OPUS_LIBRARIES "${CMAKE_SOURCE_DIR}/external/windows/libopus/lib/x64/libopus.lib")
|
2019-05-02 10:56:07 -04:00
|
|
|
endif()
|
2019-05-01 05:54:58 -04:00
|
|
|
find_package(Opus REQUIRED)
|
|
|
|
|
|
|
|
if(FFTW3F_FOUND)
|
|
|
|
set(sdrbase_SOURCES
|
|
|
|
${sdrbase_SOURCES}
|
|
|
|
dsp/fftwengine.cpp
|
|
|
|
)
|
|
|
|
set(sdrbase_HEADERS
|
|
|
|
${sdrbase_HEADERS}
|
|
|
|
dsp/fftwengine.h
|
|
|
|
)
|
|
|
|
add_definitions(-DUSE_FFTW)
|
|
|
|
include_directories(${FFTW3F_INCLUDE_DIRS})
|
|
|
|
set(sdrbase_FFTW3F_LIB ${FFTW3F_LIBRARIES})
|
|
|
|
else(FFTW3F_FOUND)
|
|
|
|
set(sdrbase_SOURCES
|
|
|
|
${sdrbase_SOURCES}
|
|
|
|
dsp/kissengine.cpp
|
|
|
|
dsp/kissfft.h
|
|
|
|
)
|
|
|
|
set(sdrbase_HEADERS
|
|
|
|
${sdrbase_HEADERS}
|
|
|
|
dsp/kissengine.h
|
|
|
|
)
|
|
|
|
add_definitions(-DUSE_KISSFFT)
|
|
|
|
endif(FFTW3F_FOUND)
|
|
|
|
|
|
|
|
if (LIBSERIALDV_FOUND)
|
|
|
|
set(sdrbase_SOURCES
|
|
|
|
${sdrbase_SOURCES}
|
|
|
|
dsp/dvserialworker.cpp
|
|
|
|
dsp/dvserialengine.cpp
|
|
|
|
)
|
|
|
|
set(sdrbase_HEADERS
|
|
|
|
${sdrbase_HEADERS}
|
|
|
|
dsp/dvserialworker.h
|
|
|
|
dsp/dvserialengine.h
|
|
|
|
)
|
|
|
|
message(STATUS "Will have SerialDV support")
|
|
|
|
add_definitions(-DDSD_USE_SERIALDV)
|
|
|
|
include_directories(${LIBSERIALDV_INCLUDE_DIR})
|
|
|
|
set(sdrbase_SERIALDV_LIB ${LIBSERIALDV_LIBRARY})
|
|
|
|
endif(LIBSERIALDV_FOUND)
|
2018-01-17 18:21:50 -05:00
|
|
|
|
2017-10-22 06:01:04 -04:00
|
|
|
set(sdrbase_SOURCES
|
2019-05-01 05:54:58 -04:00
|
|
|
${sdrbase_SOURCES}
|
2018-06-24 18:01:25 -04:00
|
|
|
audio/audiocompressor.cpp
|
2018-03-23 13:08:38 -04:00
|
|
|
audio/audiodevicemanager.cpp
|
2017-10-22 06:01:04 -04:00
|
|
|
audio/audiofifo.cpp
|
2019-02-14 08:27:06 -05:00
|
|
|
audio/audiofilter.cpp
|
2019-02-16 05:06:34 -05:00
|
|
|
audio/audiog722.cpp
|
2019-02-17 20:07:30 -05:00
|
|
|
audio/audioopus.cpp
|
2017-10-22 06:01:04 -04:00
|
|
|
audio/audiooutput.cpp
|
|
|
|
audio/audioinput.cpp
|
2018-01-28 19:59:03 -05:00
|
|
|
audio/audionetsink.cpp
|
2019-02-24 14:59:09 -05:00
|
|
|
audio/audioresampler.cpp
|
2018-09-11 07:41:09 -04:00
|
|
|
|
2019-05-09 11:27:12 -04:00
|
|
|
channel/channelapi.cpp
|
2019-02-02 16:58:42 -05:00
|
|
|
channel/remotedataqueue.cpp
|
|
|
|
channel/remotedatareadqueue.cpp
|
2018-09-11 07:41:09 -04:00
|
|
|
|
2018-01-04 05:11:53 -05:00
|
|
|
commands/command.cpp
|
2017-11-18 21:38:07 -05:00
|
|
|
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/afsquelch.cpp
|
|
|
|
dsp/agc.cpp
|
|
|
|
dsp/downchannelizer.cpp
|
|
|
|
dsp/upchannelizer.cpp
|
|
|
|
dsp/channelmarker.cpp
|
|
|
|
dsp/ctcssdetector.cpp
|
|
|
|
dsp/cwkeyer.cpp
|
2017-12-10 14:27:08 -05:00
|
|
|
dsp/cwkeyersettings.cpp
|
2018-09-11 07:41:09 -04:00
|
|
|
dsp/decimatorsif.cpp
|
2018-04-25 12:01:01 -04:00
|
|
|
dsp/decimatorsff.cpp
|
2018-04-24 19:44:54 -04:00
|
|
|
dsp/decimatorsfi.cpp
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/dspcommands.cpp
|
|
|
|
dsp/dspengine.cpp
|
|
|
|
dsp/dspdevicesourceengine.cpp
|
|
|
|
dsp/dspdevicesinkengine.cpp
|
2019-05-15 18:43:15 -04:00
|
|
|
dsp/dspdevicemimoengine.cpp
|
2018-05-20 04:42:14 -04:00
|
|
|
dsp/fftcorr.cpp
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/fftengine.cpp
|
2018-05-21 18:13:40 -04:00
|
|
|
dsp/fftfilt.cpp
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/fftwindow.cpp
|
|
|
|
dsp/filterrc.cpp
|
|
|
|
dsp/filtermbe.cpp
|
|
|
|
dsp/filerecord.cpp
|
2018-05-16 19:05:48 -04:00
|
|
|
dsp/freqlockcomplex.cpp
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/interpolator.cpp
|
2019-04-25 09:48:47 -04:00
|
|
|
dsp/hbfilterchainconverter.cpp
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/hbfiltertraits.cpp
|
|
|
|
dsp/lowpass.cpp
|
|
|
|
dsp/nco.cpp
|
|
|
|
dsp/ncof.cpp
|
|
|
|
dsp/phaselock.cpp
|
2018-05-13 02:55:14 -04:00
|
|
|
dsp/phaselockcomplex.cpp
|
2018-04-03 12:51:21 -04:00
|
|
|
dsp/projector.cpp
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/samplesinkfifo.cpp
|
|
|
|
dsp/samplesourcefifo.cpp
|
|
|
|
dsp/samplesinkfifodoublebuffered.cpp
|
|
|
|
dsp/basebandsamplesink.cpp
|
|
|
|
dsp/basebandsamplesource.cpp
|
|
|
|
dsp/nullsink.cpp
|
|
|
|
dsp/recursivefilters.cpp
|
|
|
|
dsp/threadedbasebandsamplesink.cpp
|
|
|
|
dsp/threadedbasebandsamplesource.cpp
|
|
|
|
dsp/wfir.cpp
|
|
|
|
dsp/devicesamplesource.cpp
|
|
|
|
dsp/devicesamplesink.cpp
|
2019-05-15 18:43:15 -04:00
|
|
|
dsp/devicesamplemimo.cpp
|
2017-10-22 06:01:04 -04:00
|
|
|
|
2019-05-07 18:30:40 -04:00
|
|
|
device/deviceapi.cpp
|
2017-11-01 22:30:54 -04:00
|
|
|
device/deviceenumerator.cpp
|
2017-10-31 19:30:25 -04:00
|
|
|
|
2017-10-22 06:01:04 -04:00
|
|
|
settings/preferences.cpp
|
|
|
|
settings/preset.cpp
|
|
|
|
settings/mainsettings.cpp
|
|
|
|
|
|
|
|
util/CRC64.cpp
|
|
|
|
util/db.cpp
|
2018-02-03 01:18:26 -05:00
|
|
|
util/fixedtraits.cpp
|
2017-10-22 06:01:04 -04:00
|
|
|
util/message.cpp
|
|
|
|
util/messagequeue.cpp
|
|
|
|
util/prettyprint.cpp
|
2018-03-05 20:23:47 -05:00
|
|
|
util/rtpsink.cpp
|
2017-10-22 06:01:04 -04:00
|
|
|
util/syncmessenger.cpp
|
|
|
|
util/samplesourceserializer.cpp
|
|
|
|
util/simpleserializer.cpp
|
|
|
|
#util/spinlock.cpp
|
2017-11-19 05:36:20 -05:00
|
|
|
util/uid.cpp
|
2018-11-13 07:19:54 -05:00
|
|
|
util/timeutil.cpp
|
2018-09-11 07:41:09 -04:00
|
|
|
|
|
|
|
plugin/plugininterface.cpp
|
2017-11-01 18:00:00 -04:00
|
|
|
plugin/pluginapi.cpp
|
2017-11-16 21:17:15 -05:00
|
|
|
plugin/pluginmanager.cpp
|
2018-09-11 07:41:09 -04:00
|
|
|
|
2017-11-18 13:34:47 -05:00
|
|
|
webapi/webapiadapterinterface.cpp
|
2017-11-16 21:55:36 -05:00
|
|
|
webapi/webapirequestmapper.cpp
|
|
|
|
webapi/webapiserver.cpp
|
2018-09-11 07:41:09 -04:00
|
|
|
|
2017-11-17 23:06:43 -05:00
|
|
|
mainparser.cpp
|
2019-05-01 05:54:58 -04:00
|
|
|
|
2019-05-31 04:14:10 -04:00
|
|
|
resources/webapi.qrc
|
2017-10-22 06:01:04 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrbase_HEADERS
|
2019-05-01 05:54:58 -04:00
|
|
|
${sdrbase_HEADERS}
|
|
|
|
audio/audiocompressor.h
|
2018-03-23 13:08:38 -04:00
|
|
|
audio/audiodevicemanager.h
|
2017-10-22 06:01:04 -04:00
|
|
|
audio/audiofifo.h
|
2019-02-14 08:27:06 -05:00
|
|
|
audio/audiofilter.h
|
2019-02-16 05:06:34 -05:00
|
|
|
audio/audiog722.h
|
2017-10-22 06:01:04 -04:00
|
|
|
audio/audiooutput.h
|
2019-02-17 20:07:30 -05:00
|
|
|
audio/audioopus.h
|
2017-10-22 06:01:04 -04:00
|
|
|
audio/audioinput.h
|
2018-01-28 19:59:03 -05:00
|
|
|
audio/audionetsink.h
|
2019-02-24 14:59:09 -05:00
|
|
|
audio/audioresampler.h
|
2017-10-22 06:01:04 -04:00
|
|
|
|
2019-05-09 11:27:12 -04:00
|
|
|
channel/channelapi.h
|
2019-02-02 16:58:42 -05:00
|
|
|
channel/remotedataqueue.h
|
|
|
|
channel/remotedatareadqueue.h
|
|
|
|
channel/remotedatablock.h
|
2018-09-11 07:41:09 -04:00
|
|
|
|
2018-01-04 05:11:53 -05:00
|
|
|
commands/command.h
|
2017-11-18 21:38:07 -05:00
|
|
|
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/afsquelch.h
|
2018-02-04 16:52:31 -05:00
|
|
|
dsp/autocorrector.h
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/downchannelizer.h
|
|
|
|
dsp/upchannelizer.h
|
|
|
|
dsp/channelmarker.h
|
|
|
|
dsp/complex.h
|
|
|
|
dsp/cwkeyer.h
|
2017-12-10 14:27:08 -05:00
|
|
|
dsp/cwkeyersettings.h
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/decimators.h
|
2018-05-01 13:49:47 -04:00
|
|
|
dsp/decimatorsif.h
|
2018-04-25 12:01:01 -04:00
|
|
|
dsp/decimatorsff.h
|
2018-04-24 19:44:54 -04:00
|
|
|
dsp/decimatorsfi.h
|
2018-01-15 18:01:38 -05:00
|
|
|
dsp/decimatorsu.h
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/interpolators.h
|
2019-05-17 12:35:34 -04:00
|
|
|
dsp/interpolatorsif.h
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/dspcommands.h
|
|
|
|
dsp/dspengine.h
|
|
|
|
dsp/dspdevicesourceengine.h
|
|
|
|
dsp/dspdevicesinkengine.h
|
2019-05-15 18:43:15 -04:00
|
|
|
dsp/dspdevicemimoengine.h
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/dsptypes.h
|
2018-05-20 04:42:14 -04:00
|
|
|
dsp/fftcorr.h
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/fftengine.h
|
|
|
|
dsp/fftfilt.h
|
|
|
|
dsp/fftwengine.h
|
|
|
|
dsp/fftwindow.h
|
|
|
|
dsp/filterrc.h
|
|
|
|
dsp/filtermbe.h
|
|
|
|
dsp/filerecord.h
|
2018-05-16 19:05:48 -04:00
|
|
|
dsp/freqlockcomplex.h
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/gfft.h
|
2019-04-25 09:48:47 -04:00
|
|
|
dsp/hbfilterchainconverter.h
|
2017-12-26 04:59:51 -05:00
|
|
|
dsp/iirfilter.h
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/interpolator.h
|
|
|
|
dsp/hbfiltertraits.h
|
|
|
|
dsp/inthalfbandfilter.h
|
|
|
|
dsp/inthalfbandfilterdb.h
|
2018-04-29 05:48:46 -04:00
|
|
|
dsp/inthalfbandfilterdbf.h
|
2018-05-02 08:00:03 -04:00
|
|
|
dsp/inthalfbandfiltereo.h
|
|
|
|
# dsp/inthalfbandfiltereo1.h
|
|
|
|
# dsp/inthalfbandfiltereo1i.h
|
|
|
|
# dsp/inthalfbandfiltereo2.h
|
2018-04-29 16:56:34 -04:00
|
|
|
dsp/inthalfbandfiltereof.h
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/inthalfbandfilterst.h
|
|
|
|
dsp/inthalfbandfiltersti.h
|
|
|
|
dsp/kissfft.h
|
|
|
|
dsp/kissengine.h
|
|
|
|
dsp/lowpass.h
|
|
|
|
dsp/misc.h
|
|
|
|
dsp/movingaverage.h
|
|
|
|
dsp/nco.h
|
|
|
|
dsp/ncof.h
|
|
|
|
dsp/phasediscri.h
|
|
|
|
dsp/phaselock.h
|
2018-05-13 02:55:14 -04:00
|
|
|
dsp/phaselockcomplex.h
|
2018-04-03 12:51:21 -04:00
|
|
|
dsp/projector.h
|
2017-10-22 06:01:04 -04:00
|
|
|
dsp/recursivefilters.h
|
|
|
|
dsp/samplesinkfifo.h
|
|
|
|
dsp/samplesourcefifo.h
|
|
|
|
dsp/samplesinkfifodoublebuffered.h
|
|
|
|
dsp/samplesinkfifodecimator.h
|
|
|
|
dsp/basebandsamplesink.h
|
|
|
|
dsp/basebandsamplesource.h
|
|
|
|
dsp/nullsink.h
|
|
|
|
dsp/threadedbasebandsamplesink.h
|
|
|
|
dsp/threadedbasebandsamplesource.h
|
|
|
|
dsp/wfir.h
|
|
|
|
dsp/devicesamplesource.h
|
|
|
|
dsp/devicesamplesink.h
|
2019-05-15 18:43:15 -04:00
|
|
|
dsp/devicesamplemimo.h
|
2017-10-22 06:01:04 -04:00
|
|
|
|
2019-05-07 18:30:40 -04:00
|
|
|
device/deviceapi.h
|
2017-11-01 22:30:54 -04:00
|
|
|
device/deviceenumerator.h
|
2017-10-31 19:30:25 -04:00
|
|
|
|
2017-10-22 06:01:04 -04:00
|
|
|
plugin/plugininstancegui.h
|
2017-10-31 19:30:25 -04:00
|
|
|
plugin/plugininterface.h
|
2017-11-01 18:00:00 -04:00
|
|
|
plugin/pluginapi.h
|
|
|
|
plugin/pluginmanager.h
|
2017-10-22 06:01:04 -04:00
|
|
|
|
|
|
|
settings/preferences.h
|
|
|
|
settings/preset.h
|
|
|
|
settings/mainsettings.h
|
|
|
|
|
|
|
|
util/CRC64.h
|
|
|
|
util/db.h
|
|
|
|
util/doublebuffer.h
|
2018-04-21 03:23:01 -04:00
|
|
|
util/doublebufferfifo.h
|
2018-02-03 01:18:26 -05:00
|
|
|
util/fixedtraits.h
|
2017-10-22 06:01:04 -04:00
|
|
|
util/message.h
|
|
|
|
util/messagequeue.h
|
|
|
|
util/movingaverage.h
|
|
|
|
util/prettyprint.h
|
2018-03-05 20:23:47 -05:00
|
|
|
util/rtpsink.h
|
2017-10-22 06:01:04 -04:00
|
|
|
util/syncmessenger.h
|
|
|
|
util/samplesourceserializer.h
|
|
|
|
util/simpleserializer.h
|
|
|
|
#util/spinlock.h
|
2017-11-19 05:36:20 -05:00
|
|
|
util/uid.h
|
2018-11-13 07:19:54 -05:00
|
|
|
util/timeutil.h
|
2018-09-11 07:41:09 -04:00
|
|
|
|
2017-11-16 21:17:15 -05:00
|
|
|
webapi/webapiadapterinterface.h
|
|
|
|
webapi/webapirequestmapper.h
|
2017-11-16 21:55:36 -05:00
|
|
|
webapi/webapiserver
|
2018-09-11 07:41:09 -04:00
|
|
|
|
2017-11-17 23:06:43 -05:00
|
|
|
mainparser.h
|
2017-10-22 06:01:04 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2018-03-09 07:48:14 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/exports
|
2017-11-16 21:17:15 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/httpserver
|
2018-03-05 20:23:47 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/qrtplib
|
2017-11-16 21:17:15 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2018-12-01 21:06:04 -05:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2019-02-17 20:07:30 -05:00
|
|
|
${OPUS_INCLUDE_DIRS}
|
2017-10-22 06:01:04 -04:00
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
add_library(sdrbase SHARED
|
|
|
|
${sdrbase_SOURCES}
|
|
|
|
)
|
|
|
|
|
2019-05-23 10:01:06 -04:00
|
|
|
if(ENABLE_EXTERNAL_LIBRARIES AND LIBSERIALDV_FOUND)
|
|
|
|
add_dependencies(sdrbase serialdv)
|
|
|
|
endif()
|
|
|
|
|
2017-10-22 06:01:04 -04:00
|
|
|
target_link_libraries(sdrbase
|
2019-05-01 05:54:58 -04:00
|
|
|
${OPUS_LIBRARIES}
|
|
|
|
${sdrbase_FFTW3F_LIB}
|
|
|
|
${sdrbase_SERIALDV_LIB}
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::Multimedia
|
2017-11-16 21:17:15 -05:00
|
|
|
httpserver
|
2018-03-05 20:23:47 -05:00
|
|
|
qrtplib
|
2017-11-18 13:34:47 -05:00
|
|
|
swagger
|
2017-10-22 06:01:04 -04:00
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
install(TARGETS sdrbase DESTINATION ${INSTALL_LIB_DIR})
|