1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-09 01:56:05 -05:00
sdrangel/sdrbase/CMakeLists.txt

328 lines
7.4 KiB
CMake
Raw Normal View History

project (sdrbase)
2019-05-02 10:56:07 -04:00
if(WIN32)
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()
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)
# serialdv now required
add_definitions(-DDSD_USE_SERIALDV)
include_directories(${LIBSERIALDV_INCLUDE_DIR})
set(sdrbase_SERIALDV_LIB ${LIBSERIALDV_LIBRARY})
set(sdrbase_SOURCES
${sdrbase_SOURCES}
ambe/ambeengine.cpp
ambe/ambeworker.cpp
audio/audiocompressor.cpp
audio/audiocompressorsnd.cpp
audio/audiodevicemanager.cpp
audio/audiofifo.cpp
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
audio/audiooutput.cpp
audio/audioinput.cpp
audio/audionetsink.cpp
audio/audioresampler.cpp
2019-05-09 11:27:12 -04:00
channel/channelapi.cpp
channel/channelutils.cpp
channel/remotedataqueue.cpp
channel/remotedatareadqueue.cpp
2018-01-04 05:11:53 -05:00
commands/command.cpp
dsp/afsquelch.cpp
dsp/agc.cpp
dsp/downchannelizer.cpp
dsp/upchannelizer.cpp
dsp/upsamplechannelizer.cpp
dsp/channelmarker.cpp
dsp/ctcssdetector.cpp
dsp/channelsamplesource.cpp
dsp/cwkeyer.cpp
dsp/cwkeyersettings.cpp
dsp/decimatorsif.cpp
dsp/decimatorsff.cpp
dsp/decimatorsfi.cpp
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
dsp/fftcorr2.cpp
dsp/fftengine.cpp
2018-05-21 18:13:40 -04:00
dsp/fftfilt.cpp
dsp/fftwindow.cpp
dsp/filterrc.cpp
dsp/filtermbe.cpp
dsp/filerecord.cpp
2018-05-16 19:05:48 -04:00
dsp/freqlockcomplex.cpp
dsp/interpolator.cpp
dsp/glscopesettings.cpp
2019-08-04 19:56:29 -04:00
dsp/glspectrumsettings.cpp
dsp/hbfilterchainconverter.cpp
dsp/hbfiltertraits.cpp
dsp/lowpass.cpp
dsp/mimochannel.cpp
dsp/nco.cpp
dsp/ncof.cpp
dsp/phaselock.cpp
dsp/phaselockcomplex.cpp
dsp/projector.cpp
2019-09-24 18:35:02 -04:00
dsp/samplemififo.cpp
dsp/samplemofifo.cpp
dsp/samplesinkfifo.cpp
dsp/samplesourcefifo.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
dsp/devicesamplestatic.cpp
2019-05-07 18:30:40 -04:00
device/deviceapi.cpp
2017-11-01 22:30:54 -04:00
device/deviceenumerator.cpp
2019-06-12 12:50:53 -04:00
device/deviceuserargs.cpp
device/deviceutils.cpp
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
util/message.cpp
util/messagequeue.cpp
util/prettyprint.cpp
util/rtpsink.cpp
util/syncmessenger.cpp
util/samplesourceserializer.cpp
util/simpleserializer.cpp
#util/spinlock.cpp
util/uid.cpp
util/timeutil.cpp
plugin/plugininterface.cpp
2017-11-01 18:00:00 -04:00
plugin/pluginapi.cpp
plugin/pluginmanager.cpp
webapi/webapiadapterbase.cpp
webapi/webapiadapterinterface.cpp
2017-11-16 21:55:36 -05:00
webapi/webapirequestmapper.cpp
webapi/webapiserver.cpp
mainparser.cpp
2019-05-31 04:14:10 -04:00
resources/webapi.qrc
)
set(sdrbase_HEADERS
${sdrbase_HEADERS}
ambe/ambeengine.h
ambe/ambeworker.h
audio/audiocompressor.h
audio/audiocompressorsnd.h
audio/audiodevicemanager.h
audio/audiofifo.h
audio/audiofilter.h
2019-02-16 05:06:34 -05:00
audio/audiog722.h
audio/audiooutput.h
2019-02-17 20:07:30 -05:00
audio/audioopus.h
audio/audioinput.h
audio/audionetsink.h
audio/audioresampler.h
2019-05-09 11:27:12 -04:00
channel/channelapi.h
channel/channelutils.h
channel/remotedataqueue.h
channel/remotedatareadqueue.h
channel/remotedatablock.h
2018-01-04 05:11:53 -05:00
commands/command.h
dsp/afsquelch.h
dsp/autocorrector.h
dsp/downchannelizer.h
dsp/upchannelizer.h
dsp/upsamplechannelizer.h
dsp/channelmarker.h
dsp/channelsamplesource.h
dsp/complex.h
dsp/cwkeyer.h
dsp/cwkeyersettings.h
dsp/decimators.h
dsp/decimatorsif.h
dsp/decimatorsff.h
dsp/decimatorsfi.h
dsp/decimatorsu.h
dsp/interpolators.h
dsp/interpolatorsif.h
dsp/dspcommands.h
dsp/dspengine.h
dsp/dspdevicesourceengine.h
dsp/dspdevicesinkengine.h
2019-05-15 18:43:15 -04:00
dsp/dspdevicemimoengine.h
dsp/dsptypes.h
2018-05-20 04:42:14 -04:00
dsp/fftcorr.h
dsp/fftcorr2.h
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
dsp/gfft.h
dsp/glscopesettings.h
2019-08-04 19:56:29 -04:00
dsp/glspectrumsettings.h
dsp/hbfilterchainconverter.h
dsp/iirfilter.h
dsp/interpolator.h
dsp/hbfiltertraits.h
dsp/inthalfbandfilter.h
dsp/inthalfbandfilterdb.h
dsp/inthalfbandfilterdbf.h
dsp/inthalfbandfiltereo.h
# dsp/inthalfbandfiltereo1.h
# dsp/inthalfbandfiltereo1i.h
# dsp/inthalfbandfiltereo2.h
dsp/inthalfbandfiltereof.h
dsp/inthalfbandfilterst.h
dsp/inthalfbandfiltersti.h
dsp/kissfft.h
dsp/kissengine.h
dsp/lowpass.h
dsp/mimochannel.h
dsp/misc.h
dsp/movingaverage.h
dsp/nco.h
dsp/ncof.h
dsp/phasediscri.h
dsp/phaselock.h
dsp/phaselockcomplex.h
dsp/projector.h
dsp/recursivefilters.h
2019-09-24 18:35:02 -04:00
dsp/samplemififo.h
dsp/samplemofifo.h
dsp/samplesinkfifo.h
dsp/samplesourcefifo.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
dsp/devicesamplestatic.h
2019-05-07 18:30:40 -04:00
device/deviceapi.h
2017-11-01 22:30:54 -04:00
device/deviceenumerator.h
2019-06-12 12:50:53 -04:00
device/deviceuserargs.h
device/deviceutils.h
plugin/plugininstancegui.h
plugin/plugininterface.h
2017-11-01 18:00:00 -04:00
plugin/pluginapi.h
plugin/pluginmanager.h
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
2019-10-18 23:07:24 -04:00
util/incrementalarray.h
util/incrementalvector.h
util/message.h
util/messagequeue.h
util/movingaverage.h
util/prettyprint.h
util/rtpsink.h
util/syncmessenger.h
util/samplesourceserializer.h
util/simpleserializer.h
#util/spinlock.h
util/uid.h
util/timeutil.h
webapi/webapiadapterbase.h
webapi/webapiadapterinterface.h
webapi/webapirequestmapper.h
2017-11-16 21:55:36 -05:00
webapi/webapiserver
mainparser.h
)
include_directories(
${CMAKE_SOURCE_DIR}/exports
${CMAKE_SOURCE_DIR}/httpserver
${CMAKE_SOURCE_DIR}/qrtplib
${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}
)
add_library(sdrbase SHARED
${sdrbase_SOURCES}
)
if(ENABLE_EXTERNAL_LIBRARIES AND LIBSERIALDV_FOUND)
add_dependencies(sdrbase serialdv)
endif()
target_link_libraries(sdrbase
${OPUS_LIBRARIES}
${sdrbase_FFTW3F_LIB}
${sdrbase_SERIALDV_LIB}
Qt5::Core
Qt5::Multimedia
httpserver
qrtplib
swagger
)
install(TARGETS sdrbase DESTINATION ${INSTALL_LIB_DIR})