sdrangel/sdrbase/CMakeLists.txt

499 wiersze
11 KiB
CMake
Czysty Zwykły widok Historia

project (sdrbase)
2019-05-02 14:56:07 +00: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 14:56:07 +00: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)
if (LIMESUITE_FOUND)
2020-01-12 00:10:51 +00:00
set(sdrbase_SOURCES
${sdrbase_SOURCES}
limerfe/limerfecontroller.cpp
)
set(sdrbase_HEADERS
${sdrbase_HEADERS}
limerfe/limerfecontroller.h
)
include_directories(${LIMESUITE_INCLUDE_DIR})
set(sdrbase_LIMERFE_LIB ${LIMESUITE_LIBRARY})
endif (LIMESUITE_FOUND)
2020-01-12 00:10:51 +00:00
if (LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
2020-11-10 01:09:21 +00:00
set(sdrbase_SOURCES
${sdrbase_SOURCES}
dsp/sigmffilerecord.cpp
)
set(sdrbase_HEADERS
${sdrbase_HEADERS}
dsp/sigmf_forward.h
2020-11-10 01:09:21 +00:00
dsp/sigmffilerecord.h
)
include_directories(${LIBSIGMF_INCLUDE_DIR})
set(sdrbase_LIBSIGMF_LIB ${LIBSIGMF_LIBRARIES})
endif()
2020-11-10 01:09:21 +00:00
# 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 10:06:34 +00:00
audio/audiog722.cpp
2019-02-18 01:07:30 +00:00
audio/audioopus.cpp
audio/audiooutputdevice.cpp
audio/audioinputdevice.cpp
audio/audionetsink.cpp
audio/audioresampler.cpp
2019-05-09 15:27:12 +00:00
channel/channelapi.cpp
channel/channelutils.cpp
channel/channelwebapiutils.cpp
channel/remotedataqueue.cpp
channel/remotedatareadqueue.cpp
2018-01-04 10:11:53 +00:00
commands/command.cpp
commands/commandkeyreceiver.cpp
dsp/afsquelch.cpp
dsp/agc.cpp
dsp/downchannelizer.cpp
dsp/upchannelizer.cpp
dsp/channelmarker.cpp
dsp/ctcssdetector.cpp
dsp/ctcssfrequencies.cpp
2019-11-23 06:39:57 +00:00
dsp/channelsamplesink.cpp
dsp/channelsamplesource.cpp
dsp/costasloop.cpp
dsp/cwkeyer.cpp
dsp/cwkeyersettings.cpp
dsp/datafifo.cpp
2021-04-17 16:14:15 +00:00
dsp/dcscodes.cpp
dsp/decimatorsff.cpp
dsp/decimatorsfi.cpp
dsp/decimatorc.cpp
dsp/dspcommands.cpp
dsp/dspengine.cpp
dsp/dspdevicesourceengine.cpp
dsp/dspdevicesinkengine.cpp
2019-05-15 22:43:15 +00:00
dsp/dspdevicemimoengine.cpp
2018-05-20 08:42:14 +00:00
dsp/fftcorr.cpp
dsp/fftengine.cpp
2020-03-12 05:27:38 +00:00
dsp/fftfactory.cpp
2018-05-21 22:13:40 +00:00
dsp/fftfilt.cpp
dsp/fftwindow.cpp
dsp/filterrc.cpp
dsp/filtermbe.cpp
dsp/filerecord.cpp
2020-08-06 08:46:49 +00:00
dsp/filerecordinterface.cpp
2020-10-31 20:30:45 +00:00
dsp/firfilter.cpp
dsp/fmpreemphasis.cpp
2018-05-16 23:05:48 +00:00
dsp/freqlockcomplex.cpp
dsp/interpolator.cpp
dsp/glscopesettings.cpp
dsp/spectrumsettings.cpp
2020-11-24 12:31:16 +00:00
dsp/goertzel.cpp
dsp/hbfilterchainconverter.cpp
dsp/hbfiltertraits.cpp
dsp/mimochannel.cpp
dsp/nco.cpp
dsp/ncof.cpp
dsp/phaselock.cpp
dsp/phaselockcomplex.cpp
dsp/projector.cpp
2019-09-24 22:35:02 +00:00
dsp/samplemififo.cpp
dsp/samplemofifo.cpp
dsp/samplesinkfifo.cpp
2020-07-16 14:57:51 +00:00
dsp/samplesimplefifo.cpp
dsp/samplesourcefifo.cpp
dsp/scopevis.cpp
dsp/basebandsamplesink.cpp
dsp/basebandsamplesource.cpp
dsp/recursivefilters.cpp
dsp/wfir.cpp
dsp/devicesamplesource.cpp
dsp/devicesamplesink.cpp
2019-05-15 22:43:15 +00:00
dsp/devicesamplemimo.cpp
dsp/devicesamplestatic.cpp
2021-08-07 17:45:48 +00:00
dsp/spectrummarkers.cpp
dsp/spectrumcalibrationpoint.cpp
dsp/spectrumvis.cpp
dsp/wavfilerecord.cpp
2019-05-07 22:30:40 +00:00
device/deviceapi.cpp
2017-11-02 02:30:54 +00:00
device/deviceenumerator.cpp
2020-10-01 04:09:37 +00:00
device/deviceset.cpp
2019-06-12 16:50:53 +00:00
device/deviceuserargs.cpp
device/deviceutils.cpp
feature/feature.cpp
feature/featureset.cpp
2020-09-24 03:38:05 +00:00
feature/featureutils.cpp
2021-01-13 19:58:07 +00:00
feature/featurewebapiutils.cpp
limerfe/limerfeusbcalib.cpp
pipes/datafifostore.cpp
pipes/datapipes.cpp
pipes/datapipesgcworker.cpp
pipes/messagepipes.cpp
pipes/messagepipesgcworker.cpp
2022-02-24 07:32:07 +00:00
pipes/messagequeuestore.cpp
2022-02-20 21:08:49 +00:00
pipes/objectpipe.cpp
pipes/objectpipesregistrations.cpp
settings/configuration.cpp
2020-09-24 03:38:05 +00:00
settings/featuresetpreset.cpp
settings/preferences.cpp
settings/preset.cpp
settings/mainsettings.cpp
settings/rollupstate.cpp
2021-05-07 20:50:27 +00:00
util/ais.cpp
2021-01-13 19:58:07 +00:00
util/ax25.cpp
2021-01-13 20:51:38 +00:00
util/aprs.cpp
util/astronomy.cpp
util/azel.cpp
util/coordinates.cpp
util/crc.cpp
util/CRC64.cpp
2020-11-30 00:30:18 +00:00
util/csv.cpp
util/db.cpp
2018-02-03 06:18:26 +00:00
util/fixedtraits.cpp
util/fits.cpp
util/flightinformation.cpp
2021-04-17 16:14:15 +00:00
util/golay2312.cpp
util/httpdownloadmanager.cpp
util/interpolation.cpp
util/lfsr.cpp
2021-01-13 19:58:07 +00:00
util/maidenhead.cpp
util/message.cpp
util/messagequeue.cpp
2020-11-24 12:31:16 +00:00
util/morse.cpp
util/openaip.cpp
util/planespotters.cpp
util/png.cpp
util/prettyprint.cpp
util/radiosonde.cpp
util/rtpsink.cpp
util/syncmessenger.cpp
util/samplesourceserializer.cpp
util/simpleserializer.cpp
2020-01-12 00:10:51 +00:00
util/serialutil.cpp
#util/spinlock.cpp
util/uid.cpp
2020-11-24 12:31:16 +00:00
util/units.cpp
util/timeutil.cpp
2021-06-09 15:17:59 +00:00
util/visa.cpp
util/weather.cpp
plugin/plugininterface.cpp
2017-11-01 22:00:00 +00:00
plugin/pluginapi.cpp
plugin/pluginmanager.cpp
2020-10-11 10:39:30 +00:00
webapi/webapiadapter.cpp
webapi/webapiadapterbase.cpp
webapi/webapiadapterinterface.cpp
2017-11-17 02:55:36 +00:00
webapi/webapirequestmapper.cpp
webapi/webapiserver.cpp
2020-09-27 22:18:30 +00:00
webapi/webapiutils.cpp
websockets/wsspectrum.cpp
mainparser.cpp
maincore.cpp
2019-05-31 08:14:10 +00: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 10:06:34 +00:00
audio/audiog722.h
audio/audiooutputdevice.h
2019-02-18 01:07:30 +00:00
audio/audioopus.h
audio/audioinputdevice.h
audio/audionetsink.h
audio/audioresampler.h
2019-05-09 15:27:12 +00:00
channel/channelapi.h
channel/channelutils.h
channel/channelwebapiutils.h
channel/remotedataqueue.h
channel/remotedatareadqueue.h
channel/remotedatablock.h
2018-01-04 10:11:53 +00:00
commands/command.h
commands/commandkeyreceiver.h
dsp/afsquelch.h
dsp/autocorrector.h
dsp/downchannelizer.h
dsp/upchannelizer.h
dsp/channelmarker.h
2019-11-23 06:39:57 +00:00
dsp/channelsamplesink.h
dsp/channelsamplesource.h
dsp/complex.h
dsp/costasloop.h
dsp/ctcssdetector.h
dsp/ctcssfrequencies.h
dsp/cwkeyer.h
dsp/cwkeyersettings.h
dsp/datafifo.h
2021-04-17 16:14:15 +00:00
dsp/dcscodes.h
dsp/decimators.h
dsp/decimatorsif.h
dsp/decimatorsff.h
dsp/decimatorsfi.h
dsp/decimatorsu.h
dsp/decimatorc.h
dsp/interpolators.h
dsp/interpolatorsif.h
dsp/dspcommands.h
dsp/dspengine.h
dsp/dspdevicesourceengine.h
dsp/dspdevicesinkengine.h
2019-05-15 22:43:15 +00:00
dsp/dspdevicemimoengine.h
dsp/dsptypes.h
2018-05-20 08:42:14 +00:00
dsp/fftcorr.h
dsp/fftengine.h
2020-03-12 05:27:38 +00:00
dsp/fftfactory.h
dsp/fftfilt.h
dsp/fftwengine.h
dsp/fftwindow.h
dsp/filterrc.h
dsp/filtermbe.h
dsp/filerecord.h
2020-08-06 08:46:49 +00:00
dsp/filerecordinterface.h
2020-10-31 20:30:45 +00:00
dsp/firfilter.h
dsp/fmpreemphasis.h
2018-05-16 23:05:48 +00:00
dsp/freqlockcomplex.h
dsp/gfft.h
dsp/glscopesettings.h
2020-11-11 09:23:31 +00:00
dsp/glspectruminterface.h
2021-08-07 17:45:48 +00:00
dsp/spectrummarkers.h
dsp/spectrumcalibrationpoint.h
dsp/spectrumsettings.h
2020-11-24 12:31:16 +00:00
dsp/goertzel.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
2020-10-31 23:45:19 +00:00
dsp/firfilter.h
2021-05-07 20:50:27 +00:00
dsp/gaussian.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/raisedcosine.h
dsp/recursivefilters.h
2021-03-18 17:17:58 +00:00
dsp/rootraisedcosine.h
2019-09-24 22:35:02 +00:00
dsp/samplemififo.h
dsp/samplemofifo.h
dsp/samplesinkfifo.h
2020-07-16 14:57:51 +00:00
dsp/samplesimplefifo.h
dsp/samplesourcefifo.h
dsp/scopevis.h
dsp/basebandsamplesink.h
dsp/basebandsamplesource.h
dsp/wfir.h
dsp/devicesamplesource.h
dsp/devicesamplesink.h
2019-05-15 22:43:15 +00:00
dsp/devicesamplemimo.h
dsp/devicesamplestatic.h
dsp/spectrumvis.h
dsp/wavfilerecord.h
2019-05-07 22:30:40 +00:00
device/deviceapi.h
2017-11-02 02:30:54 +00:00
device/deviceenumerator.h
2020-10-01 04:09:37 +00:00
device/deviceset.h
2019-06-12 16:50:53 +00:00
device/deviceuserargs.h
device/deviceutils.h
feature/feature.h
feature/featureset.h
2020-09-24 03:38:05 +00:00
feature/featureutils.h
2021-01-13 19:58:07 +00:00
feature/featurewebapiutils.h
limerfe/limerfeusbcalib.h
pipes/datafifostore.h
pipes/datapipes.h
pipes/datapipesgcworker.h
pipes/elementpipescommon.h
pipes/elementpipesgc.h
pipes/messagepipes.h
pipes/messagepipesgcworker.h
2022-02-24 07:32:07 +00:00
pipes/messagequeuestore.h
2022-02-20 21:08:49 +00:00
pipes/objectpipe.h
pipes/objectpipesregistrations.h
plugin/plugininterface.h
2017-11-01 22:00:00 +00:00
plugin/pluginapi.h
plugin/pluginmanager.h
settings/configuration.h
2020-09-24 03:38:05 +00:00
settings/featuresetpreset.h
settings/preferences.h
settings/preset.h
settings/mainsettings.h
settings/rollupstate.h
2021-05-07 20:50:27 +00:00
util/ais.h
2021-01-13 19:58:07 +00:00
util/ax25.h
2021-01-13 20:51:38 +00:00
util/aprs.h
util/astronomy.h
util/azel.h
util/coordinates.h
util/CRC64.h
2020-11-30 00:30:18 +00:00
util/csv.h
util/db.h
util/doublebuffer.h
2018-04-21 07:23:01 +00:00
util/doublebufferfifo.h
2021-06-01 08:58:29 +00:00
util/doublebuffermultiple.h
2018-02-03 06:18:26 +00:00
util/fixedtraits.h
util/fits.h
util/flightinformation.h
2021-04-17 16:14:15 +00:00
util/golay2312.h
util/httpdownloadmanager.h
2019-10-19 03:07:24 +00:00
util/incrementalarray.h
util/incrementalvector.h
util/interpolation.h
util/lfsr.h
2021-01-13 19:58:07 +00:00
util/maidenhead.h
util/message.h
util/messagequeue.h
2020-11-24 12:31:16 +00:00
util/morse.h
util/movingaverage.h
util/openaip.h
util/planespotters.h
util/png.h
util/prettyprint.h
util/radiosonde.h
util/rtpsink.h
util/syncmessenger.h
util/samplesourceserializer.h
util/simpleserializer.h
2020-01-12 00:10:51 +00:00
util/serialutil.h
#util/spinlock.h
util/uid.h
2020-11-24 12:31:16 +00:00
util/units.h
util/timeutil.h
2021-06-09 15:17:59 +00:00
util/visa.h
util/weather.h
2020-10-11 10:39:30 +00:00
webapi/webapiadapter.h
webapi/webapiadapterbase.h
webapi/webapiadapterinterface.h
webapi/webapirequestmapper.h
webapi/webapiserver.h
2020-09-27 22:18:30 +00:00
webapi/webapiutils.h
websockets/wsspectrum.h
mainparser.h
maincore.h
)
include_directories(
${CMAKE_SOURCE_DIR}/exports
${CMAKE_SOURCE_DIR}/httpserver
${CMAKE_SOURCE_DIR}/logging
${CMAKE_SOURCE_DIR}/qrtplib
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
2018-12-02 02:06:04 +00:00
${Boost_INCLUDE_DIRS}
2019-02-18 01:07:30 +00:00
${OPUS_INCLUDE_DIRS}
)
add_library(sdrbase SHARED
${sdrbase_SOURCES}
)
2020-04-30 12:19:19 +00:00
if(LIMESUITE_EXTERNAL)
add_dependencies(sdrbase limesuite)
endif()
if(LIBSERIALDV_EXTERNAL)
add_dependencies(sdrbase serialdv)
endif()
target_link_libraries(sdrbase
${OPUS_LIBRARIES}
${sdrbase_FFTW3F_LIB}
${sdrbase_SERIALDV_LIB}
2020-01-12 00:10:51 +00:00
${sdrbase_LIMERFE_LIB}
2020-11-10 01:09:21 +00:00
${sdrbase_LIBSIGMF_LIB}
Qt5::Core
Qt5::Multimedia
Qt5::WebSockets
httpserver
logging
qrtplib
swagger
)
install(TARGETS sdrbase DESTINATION ${INSTALL_LIB_DIR})
# Install debug symbols
if (WIN32)
install(FILES $<TARGET_PDB_FILE:sdrbase> CONFIGURATIONS Debug RelWithDebInfo DESTINATION ${INSTALL_LIB_DIR} )
endif()