2016-02-28 21:03:37 +00:00
|
|
|
cmake_minimum_required(VERSION 3.1.0)
|
2015-06-12 06:13:53 +00:00
|
|
|
cmake_policy(SET CMP0043 OLD)
|
2014-11-05 12:34:33 +00:00
|
|
|
|
2016-06-28 08:20:47 +00:00
|
|
|
# QT Framework
|
|
|
|
set(CMAKE_PREFIX_PATH "/Applications/Qt/5.7/clang_64/lib/cmake")
|
|
|
|
|
2016-02-24 10:51:36 +00:00
|
|
|
# use, i.e. don't skip the full RPATH for the build tree
|
|
|
|
set(CMAKE_SKIP_BUILD_RPATH FALSE)
|
|
|
|
|
|
|
|
# when building, don't use the install RPATH already
|
|
|
|
# (but later on when installing)
|
|
|
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
|
|
|
|
2016-02-24 14:27:05 +00:00
|
|
|
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
2016-02-24 10:51:36 +00:00
|
|
|
|
|
|
|
# add the automatically determined parts of the RPATH
|
|
|
|
# which point to directories outside the build tree to the install RPATH
|
|
|
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
|
|
|
|
2016-03-06 14:10:22 +00:00
|
|
|
add_definitions(-DLINUX) # for compatibility with Android and Windows builds with QtCretino
|
|
|
|
|
2015-03-31 17:46:29 +00:00
|
|
|
option(V4L-RTL "Use Linux Kernel RTL-SDR Source." OFF)
|
|
|
|
option(V4L-MSI "Use Linux Kernel MSI2500 Source." OFF)
|
2015-10-22 00:19:07 +00:00
|
|
|
option(BUILD_TYPE "Build type (RELEASE, RELEASEWITHDBGINFO, DEBUG" RELEASE)
|
|
|
|
option(DEBUG_OUTPUT "Print debug messages" OFF)
|
2017-06-19 06:38:00 +00:00
|
|
|
option(HOST_RPI "Compiling on RPi" OFF)
|
2014-11-05 12:34:33 +00:00
|
|
|
|
2014-05-18 15:52:39 +00:00
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
|
|
|
|
2015-08-29 23:30:43 +00:00
|
|
|
project(sdrangel)
|
2014-05-18 15:52:39 +00:00
|
|
|
|
2015-10-22 00:19:07 +00:00
|
|
|
if (BUILD_TYPE MATCHES RELEASE)
|
2016-10-25 22:57:46 +00:00
|
|
|
set(CMAKE_BUILD_TYPE "Release")
|
2015-10-22 00:19:07 +00:00
|
|
|
elseif (BUILD_TYPE MATCHES RELEASEWITHDBGINFO)
|
2016-10-25 22:57:46 +00:00
|
|
|
set(CMAKE_BUILD_TYPE "ReleaseWithDebugInfo")
|
2015-10-22 00:19:07 +00:00
|
|
|
elseif (BUILD_TYPE MATCHES DEBUG)
|
2016-10-25 22:57:46 +00:00
|
|
|
set(CMAKE_BUILD_TYPE "Debug")
|
|
|
|
elseif (BUILD_TYPE MATCHES DEBIAN)
|
|
|
|
set(CMAKE_BUILD_TYPE "Release")
|
|
|
|
set(BUILD_DEBIAN TRUE)
|
2015-10-22 00:19:07 +00:00
|
|
|
else()
|
2016-10-25 22:57:46 +00:00
|
|
|
set(CMAKE_BUILD_TYPE "Release")
|
2015-10-22 00:19:07 +00:00
|
|
|
endif()
|
2014-05-18 15:52:39 +00:00
|
|
|
|
|
|
|
set(QT_USE_QTOPENGL TRUE)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
|
|
#find_package(Qt4 REQUIRED)
|
|
|
|
find_package(Qt5Core 5.0 REQUIRED)
|
|
|
|
find_package(Qt5Widgets 5.0 REQUIRED)
|
|
|
|
find_package(Qt5Multimedia 5.0 REQUIRED)
|
|
|
|
#find_package(QT5OpenGL 5.0 REQUIRED)
|
|
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
find_package(PkgConfig)
|
|
|
|
|
2017-08-12 10:07:51 +00:00
|
|
|
find_package(Boost REQUIRED)
|
2014-05-18 15:52:39 +00:00
|
|
|
find_package(FFTW3F)
|
2016-10-25 22:57:46 +00:00
|
|
|
|
|
|
|
if (NOT BUILD_DEBIAN)
|
|
|
|
find_package(LibDSDcc)
|
|
|
|
find_package(LibMbe)
|
|
|
|
find_package(SerialDV)
|
|
|
|
endif()
|
2016-05-04 15:07:26 +00:00
|
|
|
|
2016-06-28 08:20:47 +00:00
|
|
|
# MacOS Compatibility
|
|
|
|
if(APPLE)
|
2016-06-29 08:00:38 +00:00
|
|
|
find_package(ICONV)
|
2016-06-28 08:20:47 +00:00
|
|
|
endif(APPLE)
|
2014-05-18 15:52:39 +00:00
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
2015-10-22 00:19:07 +00:00
|
|
|
|
|
|
|
if (DEBUG_OUTPUT)
|
2016-10-25 22:57:46 +00:00
|
|
|
set( QT_DEFINITIONS "${QT_DEFINITIONS}" )
|
2015-10-22 00:19:07 +00:00
|
|
|
else()
|
2016-10-25 22:57:46 +00:00
|
|
|
set( QT_DEFINITIONS "${QT_DEFINITIONS} -DQT_NO_DEBUG_OUTPUT" )
|
2015-10-22 00:19:07 +00:00
|
|
|
endif()
|
|
|
|
|
2014-05-18 15:52:39 +00:00
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
|
|
|
|
if(MSVC)
|
2016-10-25 22:57:46 +00:00
|
|
|
foreach(OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES})
|
|
|
|
string(TOUPPER ${OUTPUTCONFIG} OUTPUTCONFIG)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${CMAKE_BINARY_DIR}/bin_${OUTPUTCONFIG})
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${CMAKE_BINARY_DIR}/bin_${OUTPUTCONFIG})
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${CMAKE_BINARY_DIR}/bin_${OUTPUTCONFIG})
|
|
|
|
endforeach(OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES)
|
2014-05-18 15:52:39 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
2017-09-05 06:27:15 +00:00
|
|
|
if (HOST_RPI)
|
|
|
|
message( STATUS "Compiling on RPi" )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE )
|
|
|
|
message( STATUS "Architecture: ${ARCHITECTURE}" )
|
|
|
|
|
|
|
|
if (${ARCHITECTURE} MATCHES "x86_64|AMD64|x86")
|
|
|
|
EXECUTE_PROCESS( COMMAND grep flags /proc/cpuinfo OUTPUT_VARIABLE CPU_FLAGS )
|
|
|
|
# if (${CPU_FLAGS} MATCHES "avx2")
|
|
|
|
# set(HAS_AVX2 ON CACHE BOOL "Architecture has AVX2 SIMD enabled")
|
|
|
|
# if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
|
|
|
|
# set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mavx2" )
|
|
|
|
# set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -mavx2" )
|
|
|
|
# message(STATUS "Use AVX2 SIMD instructions")
|
|
|
|
# add_definitions(-DUSE_AVX2)
|
|
|
|
# else()
|
|
|
|
# set(HAS_AVX2 OFF CACHE BOOL "Architecture does not have AVX2 SIMD enabled")
|
|
|
|
# endif()
|
|
|
|
# endif()
|
|
|
|
if (${CPU_FLAGS} MATCHES "sse4_1")
|
|
|
|
set(HAS_SSE4_1 ON CACHE BOOL "Architecture has SSE 4.1 SIMD enabled")
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
|
|
|
|
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -msse4.1" )
|
|
|
|
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -msse4.1" )
|
|
|
|
message(STATUS "Use SSE 4.1 SIMD instructions")
|
|
|
|
add_definitions(-DUSE_SSE4_1)
|
|
|
|
elseif(MSVC)
|
|
|
|
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /arch:SSE4_1" )
|
|
|
|
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Oi /GL /Ot /Ox /arch:SSE4_1" )
|
|
|
|
set( CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG" )
|
|
|
|
add_definitions (/D "_CRT_SECURE_NO_WARNINGS")
|
|
|
|
add_definitions(-DUSE_SSE4_1)
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
set(HAS_SSE4_1 OFF CACHE BOOL "Architecture does not have SSE 4.1 SIMD enabled")
|
|
|
|
endif()
|
|
|
|
if (${CPU_FLAGS} MATCHES "ssse3")
|
|
|
|
set(HAS_SSSE3 ON CACHE BOOL "Architecture has SSSE3 SIMD enabled")
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
|
|
|
|
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mssse3" )
|
|
|
|
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -mssse3" )
|
|
|
|
message(STATUS "Use SSSE3 SIMD instructions")
|
|
|
|
add_definitions(-DUSE_SSSE3)
|
|
|
|
elseif(MSVC)
|
|
|
|
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /arch:SSSE3" )
|
|
|
|
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Oi /GL /Ot /Ox /arch:SSSE3" )
|
|
|
|
set( CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG" )
|
|
|
|
add_definitions (/D "_CRT_SECURE_NO_WARNINGS")
|
|
|
|
add_definitions(-DUSE_SSSE3)
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
set(HAS_SSSE3 OFF CACHE BOOL "Architecture does not have SSSE3 SIMD enabled")
|
|
|
|
endif()
|
|
|
|
if (${CPU_FLAGS} MATCHES "sse2")
|
|
|
|
set(HAS_SSE2 ON CACHE BOOL "Architecture has SSE2 SIMD enabled")
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
|
|
|
|
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -msse2" )
|
|
|
|
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -msse2" )
|
|
|
|
message(STATUS "Use SSE2 SIMD instructions")
|
|
|
|
add_definitions(-DUSE_SSE2)
|
|
|
|
elseif(MSVC)
|
|
|
|
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /arch:SSE2" )
|
|
|
|
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Oi /GL /Ot /Ox /arch:SSE2" )
|
|
|
|
set( CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG" )
|
|
|
|
add_definitions (/D "_CRT_SECURE_NO_WARNINGS")
|
|
|
|
add_definitions(-DUSE_SSE2)
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
set(HAS_SSE2 OFF CACHE BOOL "Architecture does not have SSE2 SIMD enabled")
|
|
|
|
endif()
|
|
|
|
elseif (${ARCHITECTURE} MATCHES "armv7l")
|
|
|
|
EXECUTE_PROCESS( COMMAND grep Features /proc/cpuinfo OUTPUT_VARIABLE CPU_FLAGS )
|
|
|
|
if (${CPU_FLAGS} MATCHES "neon")
|
|
|
|
set(HAS_NEON ON CACHE BOOL "Architecture has NEON SIMD enabled")
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
|
|
|
|
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpu=neon" )
|
|
|
|
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -mfpu=neon" )
|
|
|
|
message(STATUS "Use NEON SIMD instructions")
|
|
|
|
add_definitions(-DUSE_NEON)
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
set(HAS_NEON OFF CACHE BOOL "Architecture does not have NEON SIMD enabled")
|
|
|
|
endif()
|
|
|
|
elseif (${ARCHITECTURE} MATCHES "aarch64")
|
|
|
|
set(HAS_NEON ON CACHE BOOL FORCE "Architecture has NEON SIMD enabled")
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
|
|
|
|
message(STATUS "Aarch64 always has NEON SIMD instructions")
|
|
|
|
add_definitions(-DUSE_NEON)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Compiler flags.
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -fmax-errors=10 -ffast-math -ftree-vectorize ${EXTRA_FLAGS}")
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
2014-05-18 15:52:39 +00:00
|
|
|
set(sdrbase_SOURCES
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/mainwindow.cpp
|
2014-05-18 15:52:39 +00:00
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/audio/audiodeviceinfo.cpp
|
|
|
|
sdrbase/audio/audiofifo.cpp
|
|
|
|
sdrbase/audio/audiooutput.cpp
|
2016-11-28 17:32:50 +00:00
|
|
|
sdrbase/audio/audioinput.cpp
|
2014-05-18 15:52:39 +00:00
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/afsquelch.cpp
|
|
|
|
sdrbase/dsp/agc.cpp
|
|
|
|
sdrbase/dsp/downchannelizer.cpp
|
2016-10-17 06:58:49 +00:00
|
|
|
sdrbase/dsp/upchannelizer.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/channelmarker.cpp
|
|
|
|
sdrbase/dsp/ctcssdetector.cpp
|
2016-12-09 00:35:49 +00:00
|
|
|
sdrbase/dsp/cwkeyer.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/dspcommands.cpp
|
|
|
|
sdrbase/dsp/dspengine.cpp
|
|
|
|
sdrbase/dsp/dspdevicesourceengine.cpp
|
2016-10-17 16:15:08 +00:00
|
|
|
sdrbase/dsp/dspdevicesinkengine.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/fftengine.cpp
|
|
|
|
sdrbase/dsp/fftfilt.cxx
|
|
|
|
sdrbase/dsp/fftwindow.cpp
|
|
|
|
sdrbase/dsp/filterrc.cpp
|
|
|
|
sdrbase/dsp/filtermbe.cpp
|
|
|
|
sdrbase/dsp/filerecord.cpp
|
|
|
|
sdrbase/dsp/interpolator.cpp
|
2016-11-01 10:55:16 +00:00
|
|
|
sdrbase/dsp/hbfiltertraits.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/lowpass.cpp
|
|
|
|
sdrbase/dsp/nco.cpp
|
2016-12-19 01:41:31 +00:00
|
|
|
sdrbase/dsp/ncof.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/pidcontroller.cpp
|
2015-12-06 18:47:55 +00:00
|
|
|
sdrbase/dsp/phaselock.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/samplesinkfifo.cpp
|
2016-10-09 23:13:12 +00:00
|
|
|
sdrbase/dsp/samplesourcefifo.cpp
|
2016-10-06 13:39:18 +00:00
|
|
|
sdrbase/dsp/samplesinkfifodoublebuffered.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/basebandsamplesink.cpp
|
2016-10-14 16:47:19 +00:00
|
|
|
sdrbase/dsp/basebandsamplesource.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/nullsink.cpp
|
2017-03-19 09:28:54 +00:00
|
|
|
sdrbase/dsp/recursivefilters.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/spectrumscopecombovis.cpp
|
2017-01-29 18:51:45 +00:00
|
|
|
sdrbase/dsp/spectrumscopengcombovis.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/scopevis.cpp
|
2017-01-29 18:51:45 +00:00
|
|
|
sdrbase/dsp/scopevisng.cpp
|
2017-05-10 20:36:19 +00:00
|
|
|
sdrbase/dsp/scopevismulti.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/spectrumvis.cpp
|
|
|
|
sdrbase/dsp/threadedbasebandsamplesink.cpp
|
2016-10-17 06:58:49 +00:00
|
|
|
sdrbase/dsp/threadedbasebandsamplesource.cpp
|
2017-09-03 23:44:36 +00:00
|
|
|
sdrbase/dsp/wfir.cpp
|
2014-05-18 15:52:39 +00:00
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/aboutdialog.cpp
|
|
|
|
sdrbase/gui/addpresetdialog.cpp
|
|
|
|
sdrbase/gui/basicchannelsettingswidget.cpp
|
2017-08-24 00:05:48 +00:00
|
|
|
sdrbase/gui/basicchannelsettingsdialog.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/buttonswitch.cpp
|
|
|
|
sdrbase/gui/channelwindow.cpp
|
2017-02-11 19:44:00 +00:00
|
|
|
sdrbase/gui/clickablelabel.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/colormapper.cpp
|
2016-12-11 10:35:25 +00:00
|
|
|
sdrbase/gui/cwkeyergui.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/glscope.cpp
|
|
|
|
sdrbase/gui/glscopegui.cpp
|
2017-01-29 18:51:45 +00:00
|
|
|
sdrbase/gui/glscopeng.cpp
|
2017-05-10 20:36:19 +00:00
|
|
|
sdrbase/gui/glscopemulti.cpp
|
2017-01-29 18:51:45 +00:00
|
|
|
sdrbase/gui/glscopenggui.cpp
|
2017-05-10 20:36:19 +00:00
|
|
|
sdrbase/gui/glscopemultigui.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/glshadersimple.cpp
|
|
|
|
sdrbase/gui/glshadertextured.cpp
|
2016-03-02 02:09:50 +00:00
|
|
|
sdrbase/gui/glspectrum.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/glspectrumgui.cpp
|
|
|
|
sdrbase/gui/indicator.cpp
|
2016-12-02 01:00:53 +00:00
|
|
|
sdrbase/gui/levelmeter.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/mypositiondialog.cpp
|
|
|
|
sdrbase/gui/pluginsdialog.cpp
|
|
|
|
sdrbase/gui/audiodialog.cpp
|
|
|
|
sdrbase/gui/presetitem.cpp
|
|
|
|
sdrbase/gui/rollupwidget.cpp
|
|
|
|
sdrbase/gui/samplingdevicecontrol.cpp
|
|
|
|
sdrbase/gui/scale.cpp
|
|
|
|
sdrbase/gui/scaleengine.cpp
|
|
|
|
sdrbase/gui/valuedial.cpp
|
2017-05-17 17:36:36 +00:00
|
|
|
sdrbase/gui/valuedialz.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
|
|
|
|
sdrbase/dsp/devicesamplesource.cpp
|
2016-10-14 16:47:19 +00:00
|
|
|
sdrbase/dsp/devicesamplesink.cpp
|
2014-05-18 15:52:39 +00:00
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/plugin/pluginapi.cpp
|
|
|
|
sdrbase/plugin/plugininterface.cpp
|
|
|
|
sdrbase/plugin/pluginmanager.cpp
|
2014-05-18 15:52:39 +00:00
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/settings/preferences.cpp
|
|
|
|
sdrbase/settings/preset.cpp
|
|
|
|
sdrbase/settings/mainsettings.cpp
|
2014-05-18 15:52:39 +00:00
|
|
|
|
2016-01-24 22:38:55 +00:00
|
|
|
sdrbase/util/CRC64.cpp
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/util/db.cpp
|
|
|
|
sdrbase/util/message.cpp
|
|
|
|
sdrbase/util/messagequeue.cpp
|
|
|
|
sdrbase/util/prettyprint.cpp
|
|
|
|
sdrbase/util/syncmessenger.cpp
|
|
|
|
sdrbase/util/samplesourceserializer.cpp
|
|
|
|
sdrbase/util/simpleserializer.cpp
|
|
|
|
#sdrbase/util/spinlock.cpp
|
|
|
|
|
|
|
|
sdrbase/device/devicesourceapi.cpp
|
2016-10-17 22:03:51 +00:00
|
|
|
sdrbase/device/devicesinkapi.cpp
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrbase_HEADERS
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/mainwindow.h
|
2016-03-08 03:54:12 +00:00
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/audio/audiodeviceinfo.h
|
|
|
|
sdrbase/audio/audiofifo.h
|
|
|
|
sdrbase/audio/audiooutput.h
|
2016-11-28 17:32:50 +00:00
|
|
|
sdrbase/audio/audioinput.h
|
2016-03-08 03:54:12 +00:00
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/afsquelch.h
|
|
|
|
sdrbase/dsp/downchannelizer.h
|
2016-10-17 06:58:49 +00:00
|
|
|
sdrbase/dsp/upchannelizer.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/channelmarker.h
|
|
|
|
sdrbase/dsp/complex.h
|
2016-12-09 00:35:49 +00:00
|
|
|
sdrbase/dsp/cwkeyer.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/decimators.h
|
2017-01-02 02:14:46 +00:00
|
|
|
sdrbase/dsp/interpolators.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/dspcommands.h
|
|
|
|
sdrbase/dsp/dspengine.h
|
|
|
|
sdrbase/dsp/dspdevicesourceengine.h
|
2016-10-17 16:15:08 +00:00
|
|
|
sdrbase/dsp/dspdevicesinkengine.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/dsptypes.h
|
|
|
|
sdrbase/dsp/fftengine.h
|
|
|
|
sdrbase/dsp/fftfilt.h
|
|
|
|
sdrbase/dsp/fftwengine.h
|
|
|
|
sdrbase/dsp/fftwindow.h
|
|
|
|
sdrbase/dsp/filterrc.h
|
|
|
|
sdrbase/dsp/filtermbe.h
|
|
|
|
sdrbase/dsp/filerecord.h
|
|
|
|
sdrbase/dsp/gfft.h
|
|
|
|
sdrbase/dsp/interpolator.h
|
2016-11-01 10:55:16 +00:00
|
|
|
sdrbase/dsp/hbfiltertraits.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/inthalfbandfilter.h
|
2016-11-01 14:02:50 +00:00
|
|
|
sdrbase/dsp/inthalfbandfilterdb.h
|
2016-11-02 23:30:55 +00:00
|
|
|
sdrbase/dsp/inthalfbandfiltereo1.h
|
2016-11-07 03:16:02 +00:00
|
|
|
sdrbase/dsp/inthalfbandfiltereo1i.h
|
2016-11-08 01:02:29 +00:00
|
|
|
sdrbase/dsp/inthalfbandfilterst.h
|
2016-11-08 16:29:46 +00:00
|
|
|
sdrbase/dsp/inthalfbandfiltersti.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/kissfft.h
|
|
|
|
sdrbase/dsp/kissengine.h
|
|
|
|
sdrbase/dsp/lowpass.h
|
|
|
|
sdrbase/dsp/misc.h
|
|
|
|
sdrbase/dsp/movingaverage.h
|
|
|
|
sdrbase/dsp/nco.h
|
2016-12-19 01:41:31 +00:00
|
|
|
sdrbase/dsp/ncof.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/phasediscri.h
|
|
|
|
sdrbase/dsp/phaselock.h
|
2015-12-20 18:34:21 +00:00
|
|
|
sdrbase/dsp/pidcontroller.h
|
2017-03-19 09:28:54 +00:00
|
|
|
sdrbase/dsp/recursivefilters.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/samplesinkfifo.h
|
2016-10-09 23:13:12 +00:00
|
|
|
sdrbase/dsp/samplesourcefifo.h
|
2016-10-06 13:39:18 +00:00
|
|
|
sdrbase/dsp/samplesinkfifodoublebuffered.h
|
|
|
|
sdrbase/dsp/samplesinkfifodecimator.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/basebandsamplesink.h
|
2016-10-14 16:47:19 +00:00
|
|
|
sdrbase/dsp/basebandsamplesource.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/nullsink.h
|
2017-01-29 18:51:45 +00:00
|
|
|
sdrbase/dsp/spectrumscopecombovis.h
|
|
|
|
sdrbase/dsp/spectrumscopengcombovis.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/scopevis.h
|
2017-01-29 18:51:45 +00:00
|
|
|
sdrbase/dsp/scopevisng.h
|
2017-05-10 20:36:19 +00:00
|
|
|
sdrbase/dsp/scopevismulti.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/dsp/spectrumvis.h
|
|
|
|
sdrbase/dsp/threadedbasebandsamplesink.h
|
2016-10-17 06:58:49 +00:00
|
|
|
sdrbase/dsp/threadedbasebandsamplesource.h
|
2017-09-03 23:44:36 +00:00
|
|
|
sdrbase/dsp/wfir.h
|
2016-03-08 03:54:12 +00:00
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/aboutdialog.h
|
|
|
|
sdrbase/gui/addpresetdialog.h
|
|
|
|
sdrbase/gui/basicchannelsettingswidget.h
|
2017-08-24 00:05:48 +00:00
|
|
|
sdrbase/gui/basicchannelsettingsdialog.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/buttonswitch.h
|
|
|
|
sdrbase/gui/channelwindow.h
|
|
|
|
sdrbase/gui/colormapper.h
|
2016-12-11 10:35:25 +00:00
|
|
|
sdrbase/gui/cwkeyergui.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/glscope.h
|
|
|
|
sdrbase/gui/glscopegui.h
|
2017-01-29 18:51:45 +00:00
|
|
|
sdrbase/gui/glscopeng.h
|
2017-05-10 20:36:19 +00:00
|
|
|
sdrbase/gui/glscopemulti.h
|
2017-01-29 18:51:45 +00:00
|
|
|
sdrbase/gui/glscopenggui.h
|
2017-05-10 20:36:19 +00:00
|
|
|
sdrbase/gui/glscopemultigui.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/glshadersimple.h
|
|
|
|
sdrbase/gui/glshadertextured.h
|
2016-03-08 03:54:12 +00:00
|
|
|
sdrbase/gui/glspectrum.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/glspectrumgui.h
|
|
|
|
sdrbase/gui/indicator.h
|
2016-12-02 01:00:53 +00:00
|
|
|
sdrbase/gui/levelmeter.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/mypositiondialog.h
|
|
|
|
sdrbase/gui/physicalunit.h
|
|
|
|
sdrbase/gui/pluginsdialog.h
|
|
|
|
sdrbase/gui/audiodialog.h
|
|
|
|
sdrbase/gui/presetitem.h
|
|
|
|
sdrbase/gui/rollupwidget.h
|
|
|
|
sdrbase/gui/samplingdevicecontrol.h
|
|
|
|
sdrbase/gui/scale.h
|
|
|
|
sdrbase/gui/scaleengine.h
|
|
|
|
sdrbase/gui/valuedial.h
|
2017-05-17 17:36:36 +00:00
|
|
|
sdrbase/gui/valuedialz.h
|
2016-10-25 22:57:46 +00:00
|
|
|
|
|
|
|
sdrbase/dsp/devicesamplesource.h
|
2016-10-14 16:47:19 +00:00
|
|
|
sdrbase/dsp/devicesamplesink.h
|
2016-03-08 03:54:12 +00:00
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/plugin/pluginapi.h
|
2017-09-03 17:55:00 +00:00
|
|
|
sdrbase/plugin/plugininstanceui.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/plugin/plugininterface.h
|
|
|
|
sdrbase/plugin/pluginmanager.h
|
2016-03-08 03:54:12 +00:00
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/settings/preferences.h
|
|
|
|
sdrbase/settings/preset.h
|
|
|
|
sdrbase/settings/mainsettings.h
|
2016-03-08 03:54:12 +00:00
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/util/CRC64.h
|
2016-03-08 03:54:12 +00:00
|
|
|
sdrbase/util/db.h
|
2017-01-29 18:51:45 +00:00
|
|
|
sdrbase/util/doublebuffer.h
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/util/export.h
|
|
|
|
sdrbase/util/message.h
|
|
|
|
sdrbase/util/messagequeue.h
|
|
|
|
sdrbase/util/movingaverage.h
|
|
|
|
sdrbase/util/prettyprint.h
|
|
|
|
sdrbase/util/syncmessenger.h
|
|
|
|
sdrbase/util/samplesourceserializer.h
|
|
|
|
sdrbase/util/simpleserializer.h
|
|
|
|
#sdrbase/util/spinlock.h
|
|
|
|
|
|
|
|
sdrbase/device/devicesourceapi.h
|
2016-10-17 22:03:51 +00:00
|
|
|
sdrbase/device/devicesinkapi.h
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrbase_SOURCES
|
2016-10-25 22:57:46 +00:00
|
|
|
${sdrbase_SOURCES}
|
|
|
|
${sdrbase_HEADERS}
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrbase_FORMS
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/mainwindow.ui
|
|
|
|
|
|
|
|
sdrbase/gui/aboutdialog.ui
|
|
|
|
sdrbase/gui/addpresetdialog.ui
|
|
|
|
sdrbase/gui/basicchannelsettingswidget.ui
|
2017-08-24 00:05:48 +00:00
|
|
|
sdrbase/gui/basicchannelsettingsdialog.ui
|
2016-12-11 10:35:25 +00:00
|
|
|
sdrbase/gui/cwkeyergui.ui
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/glscopegui.ui
|
2017-01-29 18:51:45 +00:00
|
|
|
sdrbase/gui/glscopenggui.ui
|
2017-05-10 20:36:19 +00:00
|
|
|
sdrbase/gui/glscopemultigui.ui
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/gui/glspectrumgui.ui
|
|
|
|
sdrbase/gui/pluginsdialog.ui
|
|
|
|
sdrbase/gui/audiodialog.ui
|
|
|
|
sdrbase/gui/samplingdevicecontrol.ui
|
|
|
|
sdrbase/gui/myposdialog.ui
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrbase_RESOURCES
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase/resources/res.qrc
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if(FFTW3F_FOUND)
|
2016-10-25 22:57:46 +00:00
|
|
|
set(sdrbase_SOURCES
|
|
|
|
${sdrbase_SOURCES}
|
|
|
|
sdrbase/dsp/fftwengine.cpp
|
|
|
|
)
|
|
|
|
set(sdrbase_HEADERS
|
|
|
|
${sdrbase_HEADERS}
|
|
|
|
sdrbase/dsp/fftwengine.h
|
|
|
|
)
|
|
|
|
add_definitions(-DUSE_FFTW)
|
|
|
|
include_directories(${FFTW3F_INCLUDE_DIRS})
|
2014-05-18 15:52:39 +00:00
|
|
|
else(FFTW3F_FOUND)
|
2016-10-25 22:57:46 +00:00
|
|
|
set(sdrbase_SOURCES
|
|
|
|
${sdrbase_SOURCES}
|
|
|
|
sdrbase/dsp/kissengine.cpp
|
|
|
|
sdrbase/dsp/kissfft.h
|
|
|
|
)
|
|
|
|
set(sdrbase_HEADERS
|
|
|
|
${sdrbase_HEADERS}
|
|
|
|
sdrbase/dsp/kissengine.h
|
|
|
|
)
|
|
|
|
add_definitions(-DUSE_KISSFFT)
|
2014-05-18 15:52:39 +00:00
|
|
|
endif(FFTW3F_FOUND)
|
|
|
|
|
2016-05-08 04:00:37 +00:00
|
|
|
if (LIBSERIALDV_FOUND)
|
|
|
|
set(sdrbase_SOURCES
|
|
|
|
${sdrbase_SOURCES}
|
|
|
|
sdrbase/dsp/dvserialworker.cpp
|
|
|
|
sdrbase/dsp/dvserialengine.cpp
|
|
|
|
)
|
|
|
|
set(sdrbase_HEADERS
|
|
|
|
${sdrbase_HEADERS}
|
|
|
|
sdrbase/dsp/dvserialworker.h
|
|
|
|
sdrbase/dsp/dvserialengine.h
|
|
|
|
)
|
|
|
|
add_definitions(-DDSD_USE_SERIALDV)
|
|
|
|
include_directories(${LIBSERIALDV_INCLUDE_DIR})
|
|
|
|
endif(LIBSERIALDV_FOUND)
|
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
set(sdrbase_SOURCES
|
|
|
|
${sdrbase_SOURCES}
|
|
|
|
sdrbase/dsp/dvserialworker.cpp
|
|
|
|
sdrbase/dsp/dvserialengine.cpp
|
|
|
|
)
|
|
|
|
set(sdrbase_HEADERS
|
|
|
|
${sdrbase_HEADERS}
|
|
|
|
sdrbase/dsp/dvserialworker.h
|
|
|
|
sdrbase/dsp/dvserialengine.h
|
|
|
|
)
|
|
|
|
add_definitions(-DDSD_USE_SERIALDV)
|
|
|
|
include_directories(${LIBSERIALDVSRC})
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
2014-05-18 15:52:39 +00:00
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
|
|
|
|
#qt5_wrap_cpp(sdrbase_HEADERS_MOC ${sdrbase_HEADERS})
|
|
|
|
qt5_wrap_ui(sdrbase_FORMS_HEADERS ${sdrbase_FORMS})
|
|
|
|
qt5_add_resources(sdrbase_RESOURCES_RCC ${sdrbase_RESOURCES})
|
|
|
|
|
|
|
|
if(WIN32)
|
2016-10-25 22:57:46 +00:00
|
|
|
SET(sdrbase_SOURCES ${sdrbase_SOURCES} sdrbase/resources/sdrangel.rc)
|
2014-05-18 15:52:39 +00:00
|
|
|
endif(WIN32)
|
|
|
|
|
|
|
|
add_library(sdrbase SHARED
|
2016-10-25 22:57:46 +00:00
|
|
|
${sdrbase_SOURCES}
|
|
|
|
${sdrbase_HEADERS_MOC}
|
|
|
|
${sdrbase_FORMS_HEADERS}
|
|
|
|
${sdrbase_RESOURCES_RCC}
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(sdrbase
|
2016-10-25 22:57:46 +00:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
${OPENGL_LIBRARIES}
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if(FFTW3F_FOUND)
|
2016-10-25 22:57:46 +00:00
|
|
|
target_link_libraries(sdrbase ${FFTW3F_LIBRARIES})
|
2014-05-18 15:52:39 +00:00
|
|
|
endif(FFTW3F_FOUND)
|
|
|
|
|
2016-05-08 04:00:37 +00:00
|
|
|
if(LIBSERIALDV_FOUND)
|
|
|
|
target_link_libraries(sdrbase ${LIBSERIALDV_LIBRARY})
|
|
|
|
endif(LIBSERIALDV_FOUND)
|
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(sdrbase serialdv)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
2017-09-05 06:27:15 +00:00
|
|
|
##############################################################################
|
|
|
|
|
2015-08-29 23:30:43 +00:00
|
|
|
set_target_properties(sdrbase PROPERTIES DEFINE_SYMBOL "sdrangel_EXPORTS")
|
2016-10-29 15:01:02 +00:00
|
|
|
target_compile_features(sdrbase PRIVATE cxx_generalized_initializers) # cmake >= 3.1.0
|
2014-05-18 15:52:39 +00:00
|
|
|
|
|
|
|
qt5_use_modules(sdrbase Core Widgets OpenGL Multimedia)
|
|
|
|
|
|
|
|
include_directories(
|
2016-10-25 22:57:46 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/sdrbase
|
|
|
|
${OPENGL_INCLUDE_DIR}
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
2015-08-29 23:30:43 +00:00
|
|
|
set(sdrangel_SOURCES
|
2016-10-25 22:57:46 +00:00
|
|
|
app/main.cpp
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if(WIN32)
|
2016-10-25 22:57:46 +00:00
|
|
|
SET(sdrangel_SOURCES ${sdrangel_SOURCES} sdrbase/resources/sdrangel.rc)
|
2014-05-18 15:52:39 +00:00
|
|
|
endif(WIN32)
|
|
|
|
|
2015-08-29 23:30:43 +00:00
|
|
|
add_executable(sdrangel
|
2016-10-25 22:57:46 +00:00
|
|
|
${sdrangel_SOURCES}
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
2015-08-29 23:30:43 +00:00
|
|
|
target_link_libraries(sdrangel
|
2016-10-25 22:57:46 +00:00
|
|
|
sdrbase
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${OPENGL_LIBRARIES}
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if(WIN32)
|
2016-10-25 22:57:46 +00:00
|
|
|
set_target_properties(sdrangel PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE")
|
|
|
|
set_target_properties(sdrangel PROPERTIES COMPILE_DEFINITIONS_DEBUG "_CONSOLE")
|
|
|
|
set_target_properties(sdrangel PROPERTIES LINK_FLAGS_RELWITHDEBINFO "/SUBSYSTEM:CONSOLE")
|
|
|
|
set_target_properties(sdrangel PROPERTIES COMPILE_DEFINITIONS_RELWITHDEBINFO "_CONSOLE")
|
|
|
|
set_target_properties(sdrangel PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
|
|
|
|
set_target_properties(sdrangel PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
|
2014-05-18 15:52:39 +00:00
|
|
|
endif(WIN32)
|
|
|
|
|
2015-08-29 23:30:43 +00:00
|
|
|
qt5_use_modules(sdrangel Widgets Multimedia)
|
2014-05-18 15:52:39 +00:00
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
add_subdirectory(cm256cc)
|
|
|
|
add_subdirectory(mbelib)
|
|
|
|
add_subdirectory(serialdv)
|
|
|
|
add_subdirectory(dsdcc)
|
|
|
|
add_subdirectory(libairspy)
|
|
|
|
add_subdirectory(libhackrf)
|
|
|
|
add_subdirectory(librtlsdr)
|
2016-11-02 14:51:45 +00:00
|
|
|
add_subdirectory(libbladerf)
|
2016-11-23 23:51:01 +00:00
|
|
|
add_subdirectory(libmirisdr)
|
2017-05-09 00:47:45 +00:00
|
|
|
add_subdirectory(liblimesuite)
|
2017-09-11 06:34:33 +00:00
|
|
|
add_subdirectory(libiio)
|
2016-10-25 22:57:46 +00:00
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
2017-08-23 18:03:52 +00:00
|
|
|
add_subdirectory(httpserver)
|
2016-12-30 15:13:28 +00:00
|
|
|
add_subdirectory(devices)
|
2014-05-18 15:52:39 +00:00
|
|
|
add_subdirectory(plugins)
|
2016-02-17 18:42:26 +00:00
|
|
|
|
|
|
|
if(LIBUSB_FOUND AND UNIX)
|
2016-10-25 22:57:46 +00:00
|
|
|
add_subdirectory(fcdhid)
|
|
|
|
add_subdirectory(fcdlib)
|
2016-02-17 18:42:26 +00:00
|
|
|
endif(LIBUSB_FOUND AND UNIX)
|
2016-02-24 10:51:36 +00:00
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
#install targets
|
|
|
|
install(TARGETS sdrangel DESTINATION bin)
|
|
|
|
install(TARGETS sdrbase DESTINATION lib)
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
# uninstall target
|
|
|
|
configure_file(
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
|
|
|
IMMEDIATE @ONLY)
|
|
|
|
|
|
|
|
add_custom_target(uninstall
|
|
|
|
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|