2017-10-22 10:01:04 +00:00
|
|
|
project (sdrbase)
|
|
|
|
|
2018-11-24 20:21:04 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
2018-01-17 23:21:50 +00:00
|
|
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined")
|
|
|
|
|
2017-10-22 10:01:04 +00:00
|
|
|
set(sdrbase_SOURCES
|
2018-06-24 22:01:25 +00:00
|
|
|
audio/audiocompressor.cpp
|
2018-03-23 17:08:38 +00:00
|
|
|
audio/audiodevicemanager.cpp
|
2017-10-22 10:01:04 +00:00
|
|
|
audio/audiofifo.cpp
|
|
|
|
audio/audiooutput.cpp
|
|
|
|
audio/audioinput.cpp
|
2018-01-29 00:59:03 +00:00
|
|
|
audio/audionetsink.cpp
|
2018-09-11 11:41:09 +00:00
|
|
|
|
2017-11-19 02:38:07 +00:00
|
|
|
channel/channelsinkapi.cpp
|
|
|
|
channel/channelsourceapi.cpp
|
2018-09-11 11:41:09 +00:00
|
|
|
channel/sdrdaemondataqueue.cpp
|
|
|
|
channel/sdrdaemondatareadqueue.cpp
|
|
|
|
|
2018-01-04 10:11:53 +00:00
|
|
|
commands/command.cpp
|
2017-11-19 02:38:07 +00:00
|
|
|
|
2017-10-22 10:01:04 +00: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 19:27:08 +00:00
|
|
|
dsp/cwkeyersettings.cpp
|
2018-09-11 11:41:09 +00:00
|
|
|
dsp/decimatorsif.cpp
|
2018-04-25 16:01:01 +00:00
|
|
|
dsp/decimatorsff.cpp
|
2018-04-24 23:44:54 +00:00
|
|
|
dsp/decimatorsfi.cpp
|
2017-10-22 10:01:04 +00:00
|
|
|
dsp/dspcommands.cpp
|
|
|
|
dsp/dspengine.cpp
|
|
|
|
dsp/dspdevicesourceengine.cpp
|
|
|
|
dsp/dspdevicesinkengine.cpp
|
2018-05-20 08:42:14 +00:00
|
|
|
dsp/fftcorr.cpp
|
2017-10-22 10:01:04 +00:00
|
|
|
dsp/fftengine.cpp
|
2018-05-21 22:13:40 +00:00
|
|
|
dsp/fftfilt.cpp
|
2017-10-22 10:01:04 +00:00
|
|
|
dsp/fftwindow.cpp
|
|
|
|
dsp/filterrc.cpp
|
|
|
|
dsp/filtermbe.cpp
|
|
|
|
dsp/filerecord.cpp
|
2018-05-16 23:05:48 +00:00
|
|
|
dsp/freqlockcomplex.cpp
|
2017-10-22 10:01:04 +00:00
|
|
|
dsp/interpolator.cpp
|
|
|
|
dsp/hbfiltertraits.cpp
|
|
|
|
dsp/lowpass.cpp
|
|
|
|
dsp/nco.cpp
|
|
|
|
dsp/ncof.cpp
|
|
|
|
dsp/phaselock.cpp
|
2018-05-13 06:55:14 +00:00
|
|
|
dsp/phaselockcomplex.cpp
|
2018-04-03 16:51:21 +00:00
|
|
|
dsp/projector.cpp
|
2017-10-22 10:01:04 +00: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
|
|
|
|
|
2017-10-31 23:30:25 +00:00
|
|
|
device/devicesourceapi.cpp
|
|
|
|
device/devicesinkapi.cpp
|
2017-11-02 02:30:54 +00:00
|
|
|
device/deviceenumerator.cpp
|
2017-10-31 23:30:25 +00:00
|
|
|
|
2017-10-22 10:01:04 +00:00
|
|
|
settings/preferences.cpp
|
|
|
|
settings/preset.cpp
|
|
|
|
settings/mainsettings.cpp
|
|
|
|
|
|
|
|
util/CRC64.cpp
|
|
|
|
util/db.cpp
|
2018-02-03 06:18:26 +00:00
|
|
|
util/fixedtraits.cpp
|
2017-10-22 10:01:04 +00:00
|
|
|
util/message.cpp
|
|
|
|
util/messagequeue.cpp
|
|
|
|
util/prettyprint.cpp
|
2018-03-06 01:23:47 +00:00
|
|
|
util/rtpsink.cpp
|
2017-10-22 10:01:04 +00:00
|
|
|
util/syncmessenger.cpp
|
|
|
|
util/samplesourceserializer.cpp
|
|
|
|
util/simpleserializer.cpp
|
|
|
|
#util/spinlock.cpp
|
2017-11-19 10:36:20 +00:00
|
|
|
util/uid.cpp
|
2018-11-13 12:19:54 +00:00
|
|
|
util/timeutil.cpp
|
2018-09-11 11:41:09 +00:00
|
|
|
|
|
|
|
plugin/plugininterface.cpp
|
2017-11-01 22:00:00 +00:00
|
|
|
plugin/pluginapi.cpp
|
2017-11-17 02:17:15 +00:00
|
|
|
plugin/pluginmanager.cpp
|
2018-09-11 11:41:09 +00:00
|
|
|
|
2017-11-18 18:34:47 +00:00
|
|
|
webapi/webapiadapterinterface.cpp
|
2017-11-17 02:55:36 +00:00
|
|
|
webapi/webapirequestmapper.cpp
|
|
|
|
webapi/webapiserver.cpp
|
2018-09-11 11:41:09 +00:00
|
|
|
|
2017-11-18 04:06:43 +00:00
|
|
|
mainparser.cpp
|
2017-10-22 10:01:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrbase_HEADERS
|
2018-06-24 22:01:25 +00:00
|
|
|
audio/audiocompressor.h
|
2018-03-23 17:08:38 +00:00
|
|
|
audio/audiodevicemanager.h
|
2017-10-22 10:01:04 +00:00
|
|
|
audio/audiofifo.h
|
|
|
|
audio/audiooutput.h
|
|
|
|
audio/audioinput.h
|
2018-01-29 00:59:03 +00:00
|
|
|
audio/audionetsink.h
|
2017-10-22 10:01:04 +00:00
|
|
|
|
2017-11-19 02:38:07 +00:00
|
|
|
channel/channelsinkapi.h
|
|
|
|
channel/channelsourceapi.h
|
2018-09-11 11:41:09 +00:00
|
|
|
channel/sdrdaemondataqueue.h
|
|
|
|
channel/sdrdaemondatareadqueue.h
|
|
|
|
channel/sdrdaemondatablock.h
|
|
|
|
|
2018-01-04 10:11:53 +00:00
|
|
|
commands/command.h
|
2017-11-19 02:38:07 +00:00
|
|
|
|
2017-10-22 10:01:04 +00:00
|
|
|
dsp/afsquelch.h
|
2018-02-04 21:52:31 +00:00
|
|
|
dsp/autocorrector.h
|
2017-10-22 10:01:04 +00:00
|
|
|
dsp/downchannelizer.h
|
|
|
|
dsp/upchannelizer.h
|
|
|
|
dsp/channelmarker.h
|
|
|
|
dsp/complex.h
|
|
|
|
dsp/cwkeyer.h
|
2017-12-10 19:27:08 +00:00
|
|
|
dsp/cwkeyersettings.h
|
2017-10-22 10:01:04 +00:00
|
|
|
dsp/decimators.h
|
2018-05-01 17:49:47 +00:00
|
|
|
dsp/decimatorsif.h
|
2018-04-25 16:01:01 +00:00
|
|
|
dsp/decimatorsff.h
|
2018-04-24 23:44:54 +00:00
|
|
|
dsp/decimatorsfi.h
|
2018-01-15 23:01:38 +00:00
|
|
|
dsp/decimatorsu.h
|
2017-10-22 10:01:04 +00:00
|
|
|
dsp/interpolators.h
|
|
|
|
dsp/dspcommands.h
|
|
|
|
dsp/dspengine.h
|
|
|
|
dsp/dspdevicesourceengine.h
|
|
|
|
dsp/dspdevicesinkengine.h
|
|
|
|
dsp/dsptypes.h
|
2018-05-20 08:42:14 +00:00
|
|
|
dsp/fftcorr.h
|
2017-10-22 10:01:04 +00: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 23:05:48 +00:00
|
|
|
dsp/freqlockcomplex.h
|
2017-10-22 10:01:04 +00:00
|
|
|
dsp/gfft.h
|
2017-12-26 09:59:51 +00:00
|
|
|
dsp/iirfilter.h
|
2017-10-22 10:01:04 +00:00
|
|
|
dsp/interpolator.h
|
|
|
|
dsp/hbfiltertraits.h
|
|
|
|
dsp/inthalfbandfilter.h
|
|
|
|
dsp/inthalfbandfilterdb.h
|
2018-04-29 09:48:46 +00:00
|
|
|
dsp/inthalfbandfilterdbf.h
|
2018-05-02 12:00:03 +00:00
|
|
|
dsp/inthalfbandfiltereo.h
|
|
|
|
# dsp/inthalfbandfiltereo1.h
|
|
|
|
# dsp/inthalfbandfiltereo1i.h
|
|
|
|
# dsp/inthalfbandfiltereo2.h
|
2018-04-29 20:56:34 +00:00
|
|
|
dsp/inthalfbandfiltereof.h
|
2017-10-22 10:01:04 +00: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 06:55:14 +00:00
|
|
|
dsp/phaselockcomplex.h
|
2018-04-03 16:51:21 +00:00
|
|
|
dsp/projector.h
|
2017-10-22 10:01:04 +00: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
|
|
|
|
|
2017-10-31 23:30:25 +00:00
|
|
|
device/devicesourceapi.h
|
|
|
|
device/devicesinkapi.h
|
2017-11-02 02:30:54 +00:00
|
|
|
device/deviceenumerator.h
|
2017-10-31 23:30:25 +00:00
|
|
|
|
2017-10-22 10:01:04 +00:00
|
|
|
plugin/plugininstancegui.h
|
2017-10-31 23:30:25 +00:00
|
|
|
plugin/plugininterface.h
|
2017-11-01 22:00:00 +00:00
|
|
|
plugin/pluginapi.h
|
|
|
|
plugin/pluginmanager.h
|
2017-10-22 10:01:04 +00:00
|
|
|
|
|
|
|
settings/preferences.h
|
|
|
|
settings/preset.h
|
|
|
|
settings/mainsettings.h
|
|
|
|
|
|
|
|
util/CRC64.h
|
|
|
|
util/db.h
|
|
|
|
util/doublebuffer.h
|
2018-04-21 07:23:01 +00:00
|
|
|
util/doublebufferfifo.h
|
2018-02-03 06:18:26 +00:00
|
|
|
util/fixedtraits.h
|
2017-10-22 10:01:04 +00:00
|
|
|
util/message.h
|
|
|
|
util/messagequeue.h
|
|
|
|
util/movingaverage.h
|
|
|
|
util/prettyprint.h
|
2018-03-06 01:23:47 +00:00
|
|
|
util/rtpsink.h
|
2017-10-22 10:01:04 +00:00
|
|
|
util/syncmessenger.h
|
|
|
|
util/samplesourceserializer.h
|
|
|
|
util/simpleserializer.h
|
|
|
|
#util/spinlock.h
|
2017-11-19 10:36:20 +00:00
|
|
|
util/uid.h
|
2018-11-13 12:19:54 +00:00
|
|
|
util/timeutil.h
|
2018-09-11 11:41:09 +00:00
|
|
|
|
2017-11-17 02:17:15 +00:00
|
|
|
webapi/webapiadapterinterface.h
|
|
|
|
webapi/webapirequestmapper.h
|
2017-11-17 02:55:36 +00:00
|
|
|
webapi/webapiserver
|
2018-09-11 11:41:09 +00:00
|
|
|
|
2017-11-18 04:06:43 +00:00
|
|
|
mainparser.h
|
2017-10-22 10:01:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrbase_SOURCES
|
|
|
|
${sdrbase_SOURCES}
|
|
|
|
${sdrbase_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
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})
|
|
|
|
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
|
|
|
|
)
|
|
|
|
add_definitions(-DDSD_USE_SERIALDV)
|
|
|
|
include_directories(${LIBSERIALDV_INCLUDE_DIR})
|
|
|
|
endif(LIBSERIALDV_FOUND)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
set(sdrbase_SOURCES
|
|
|
|
${sdrbase_SOURCES}
|
|
|
|
dsp/dvserialworker.cpp
|
|
|
|
dsp/dvserialengine.cpp
|
|
|
|
)
|
|
|
|
set(sdrbase_HEADERS
|
|
|
|
${sdrbase_HEADERS}
|
|
|
|
dsp/dvserialworker.h
|
|
|
|
dsp/dvserialengine.h
|
|
|
|
)
|
|
|
|
add_definitions(-DDSD_USE_SERIALDV)
|
|
|
|
include_directories(${LIBSERIALDVSRC})
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
2017-11-20 22:57:53 +00:00
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
2017-10-22 10:01:04 +00:00
|
|
|
add_library(sdrbase SHARED
|
|
|
|
${sdrbase_SOURCES}
|
|
|
|
${sdrbase_HEADERS_MOC}
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
.
|
2018-03-09 12:48:14 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/exports
|
2017-11-17 02:17:15 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/httpserver
|
2018-03-06 01:23:47 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/qrtplib
|
2017-11-17 02:17:15 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2018-12-02 02:06:04 +00:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2017-10-22 10:01:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(sdrbase
|
|
|
|
${QT_LIBRARIES}
|
2017-11-17 02:17:15 +00:00
|
|
|
httpserver
|
2018-03-06 01:23:47 +00:00
|
|
|
qrtplib
|
2017-11-18 18:34:47 +00:00
|
|
|
swagger
|
2017-10-22 10:01:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if(FFTW3F_FOUND)
|
|
|
|
target_link_libraries(sdrbase ${FFTW3F_LIBRARIES})
|
|
|
|
endif(FFTW3F_FOUND)
|
|
|
|
|
|
|
|
if(LIBSERIALDV_FOUND)
|
|
|
|
target_link_libraries(sdrbase ${LIBSERIALDV_LIBRARY})
|
|
|
|
endif(LIBSERIALDV_FOUND)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(sdrbase serialdv)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
2018-03-09 13:07:39 +00:00
|
|
|
set_target_properties(sdrbase PROPERTIES DEFINE_SYMBOL "sdrbase_EXPORTS")
|
2017-10-22 10:01:04 +00:00
|
|
|
target_compile_features(sdrbase PRIVATE cxx_generalized_initializers) # cmake >= 3.1.0
|
|
|
|
|
2018-06-12 22:20:51 +00:00
|
|
|
target_link_libraries(sdrbase Qt5::Core Qt5::Multimedia)
|
2017-10-22 10:01:04 +00:00
|
|
|
|
|
|
|
install(TARGETS sdrbase DESTINATION lib)
|
|
|
|
|