2018-05-13 20:49:11 +00:00
|
|
|
# Copyright (C) 2012-2018 (see AUTHORS file for a list of contributors)
|
2012-12-24 02:33:50 +00:00
|
|
|
#
|
|
|
|
# This file is part of GNSS-SDR.
|
|
|
|
#
|
|
|
|
# GNSS-SDR is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
2014-06-28 01:55:57 +00:00
|
|
|
# (at your option) any later version.
|
2012-12-24 02:33:50 +00:00
|
|
|
#
|
|
|
|
# GNSS-SDR is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2018-05-13 20:49:11 +00:00
|
|
|
# along with GNSS-SDR. If not, see <https://www.gnu.org/licenses/>.
|
2012-12-24 02:33:50 +00:00
|
|
|
#
|
|
|
|
|
Improve portability
In some architectures (e.g. alpha, hppa, powerpcspe, m68k, sh4, sparc64, x32) the package gr-osmosdr is not available. So when the package is build with -DENABLE_OSMOSDR=ON, it breaks on the mentioned architectures. This is expected behaviour (it breaks because a required dependency is not found), but prevents from building the package on such architectures. This commit introduces a small change: when compilation is called with
cmake -DENABLE_OSMOSDR=ON -DENABLE_PACKAGING=ON ..
then, the compilation does not break if gr-osmosdr is not found.
This commit also fixes building when UHD is present but gnuradio-uhd is not (for instance, in hurd-i386)
2017-04-12 16:06:04 +00:00
|
|
|
file(GLOB SIGNAL_SOURCE_ADAPTER_HEADERS "*.h")
|
|
|
|
list(SORT SIGNAL_SOURCE_ADAPTER_HEADERS)
|
|
|
|
|
2012-12-24 02:33:50 +00:00
|
|
|
# Optional drivers
|
|
|
|
|
2018-05-16 09:36:37 +00:00
|
|
|
if(ENABLE_RAW_UDP)
|
|
|
|
# - Try to find libpcap include dirs and libraries
|
|
|
|
#
|
|
|
|
# Usage of this module as follows:
|
|
|
|
#
|
|
|
|
# find_package(PCAP)
|
|
|
|
#
|
|
|
|
# Variables used by this module, they can change the default behaviour and need
|
|
|
|
# to be set before calling find_package:
|
|
|
|
#
|
|
|
|
# PCAP_ROOT_DIR Set this variable to the root installation of
|
|
|
|
# libpcap if the module has problems finding the
|
|
|
|
# proper installation path.
|
|
|
|
#
|
|
|
|
# Variables defined by this module:
|
|
|
|
#
|
|
|
|
# PCAP_FOUND System has libpcap, include and library dirs found
|
|
|
|
# PCAP_INCLUDE_DIR The libpcap include directories.
|
|
|
|
# PCAP_LIBRARY The libpcap library (possibly includes a thread
|
|
|
|
# library e.g. required by pf_ring's libpcap)
|
|
|
|
# HAVE_PF_RING If a found version of libpcap supports PF_RING
|
|
|
|
find_package(PCAP)
|
|
|
|
if(NOT PCAP_FOUND)
|
|
|
|
message(FATAL_ERROR "PCAP required to compile custom UDP packet sample source (ENABLE_RAW_UDP)")
|
|
|
|
endif()
|
|
|
|
get_filename_component(PCAP_LIBRARY_DIRS ${PCAP_LIBRARY} DIRECTORY CACHE)
|
|
|
|
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${PCAP_LIBRARIES})
|
|
|
|
set(OPT_DRIVER_INCLUDE_DIRS ${OPT_DRIVER_INCLUDE_DIRS} ${PCAP_INCLUDE_DIRS})
|
|
|
|
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} custom_udp_signal_source.cc)
|
|
|
|
|
|
|
|
endif(ENABLE_RAW_UDP)
|
|
|
|
|
2017-10-31 15:02:18 +00:00
|
|
|
if(ENABLE_PLUTOSDR OR ENABLE_FMCOMMS2)
|
|
|
|
find_package(iio REQUIRED)
|
|
|
|
if(NOT IIO_FOUND)
|
|
|
|
message(STATUS "gnuradio-iio not found, its installation is required.")
|
|
|
|
message(STATUS "Please build and install the following projects:")
|
|
|
|
message(STATUS " * libiio from https://github.com/analogdevicesinc/libiio")
|
|
|
|
message(STATUS " * libad9361-iio from https://github.com/analogdevicesinc/libad9361-iio")
|
|
|
|
message(STATUS " * gnuradio-iio from https://github.com/analogdevicesinc/gr-iio")
|
2018-05-01 10:02:50 +00:00
|
|
|
message(FATAL_ERROR "gnuradio-iio is required for building gnss-sdr with this option enabled.")
|
2017-10-31 15:02:18 +00:00
|
|
|
endif(NOT IIO_FOUND)
|
|
|
|
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${IIO_LIBRARIES})
|
|
|
|
set(OPT_DRIVER_INCLUDE_DIRS ${OPT_DRIVER_INCLUDE_DIRS} ${IIO_INCLUDE_DIRS})
|
|
|
|
endif(ENABLE_PLUTOSDR OR ENABLE_FMCOMMS2)
|
|
|
|
|
2018-03-02 10:30:36 +00:00
|
|
|
if(ENABLE_AD9361)
|
|
|
|
find_package(libiio REQUIRED)
|
|
|
|
if(NOT LIBIIO_FOUND)
|
2018-05-01 10:02:50 +00:00
|
|
|
message(STATUS "libiio not found, its installation is required.")
|
2018-03-02 10:30:36 +00:00
|
|
|
message(STATUS "Please build and install the following projects:")
|
|
|
|
message(STATUS " * libiio from https://github.com/analogdevicesinc/libiio")
|
|
|
|
message(STATUS " * libad9361-iio from https://github.com/analogdevicesinc/libad9361-iio")
|
|
|
|
message(STATUS " * gnuradio-iio from https://github.com/analogdevicesinc/gr-iio")
|
2018-05-01 10:02:50 +00:00
|
|
|
message(FATAL_ERROR "libiio is required for building gnss-sdr with this option enabled.")
|
2018-03-02 10:30:36 +00:00
|
|
|
endif(NOT LIBIIO_FOUND)
|
|
|
|
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${LIBIIO_LIBRARIES})
|
|
|
|
set(OPT_DRIVER_INCLUDE_DIRS ${OPT_DRIVER_INCLUDE_DIRS} ${LIBIIO_INCLUDE_DIRS})
|
|
|
|
endif(ENABLE_AD9361)
|
|
|
|
|
2017-10-31 15:03:41 +00:00
|
|
|
|
2017-10-29 05:51:22 +00:00
|
|
|
if(ENABLE_PLUTOSDR)
|
|
|
|
##############################################
|
|
|
|
# ADALM-PLUTO (Analog Devices Inc.)
|
|
|
|
##############################################
|
2017-10-31 15:02:18 +00:00
|
|
|
if(IIO_FOUND)
|
2017-10-30 15:17:53 +00:00
|
|
|
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} plutosdr_signal_source.cc)
|
2017-10-31 15:02:18 +00:00
|
|
|
endif(IIO_FOUND)
|
2017-10-29 05:51:22 +00:00
|
|
|
endif(ENABLE_PLUTOSDR)
|
|
|
|
|
2017-10-31 15:03:41 +00:00
|
|
|
|
2017-10-29 05:51:22 +00:00
|
|
|
if(ENABLE_FMCOMMS2)
|
|
|
|
###############################################
|
|
|
|
# FMCOMMS2 based SDR Hardware
|
|
|
|
###############################################
|
2017-10-31 15:02:18 +00:00
|
|
|
if(IIO_FOUND)
|
2017-10-31 11:45:09 +00:00
|
|
|
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} fmcomms2_signal_source.cc)
|
2017-10-31 15:02:18 +00:00
|
|
|
endif(IIO_FOUND)
|
2017-10-29 05:51:22 +00:00
|
|
|
endif(ENABLE_FMCOMMS2)
|
|
|
|
|
2018-03-02 10:30:36 +00:00
|
|
|
if(ENABLE_AD9361)
|
|
|
|
###############################################
|
|
|
|
# AD9361 DIRECT TO FPGA Hardware
|
|
|
|
###############################################
|
|
|
|
if(LIBIIO_FOUND)
|
|
|
|
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} ad9361_fpga_signal_source.cc)
|
|
|
|
endif(LIBIIO_FOUND)
|
|
|
|
endif(ENABLE_AD9361)
|
|
|
|
|
|
|
|
|
2017-10-31 15:03:41 +00:00
|
|
|
|
Improving handling of optional processing blocks and linking libraries.
New options ENABLE_GN3S, ENABLE_RTLSDR, ENABLE_OPENCL, ENABLE_ARRAY and
ENABLE_GPERFTOOLS, all set by default to OFF. Users can enable that
features by 'cmake -DENABLE_XXX=ON ../ '. OpenCL is now not used by
default since it was giving problems in some platforms. Old variables
(RTSDR_DRIVER, GN3S_DRIVER, RAW_ARRAY_DRIVER and DISABLE_OPENCL) are
still honored and can be used in the same way, but the new ENABLE_XXX
are recommended for the sake of more uniform naming. Main CMakeFile.txt
has been rearranged, putting options first, then searching for the
required libraries, and then the optional ones. If Gperftools is enabled
and found, binaries are linked to the tcmalloc and profiler libraries,
and using the adequate flags. Fixed building in Mac OSX if Armadillo and
OpenBLAS were not installed in the system.
2014-08-07 19:04:01 +00:00
|
|
|
if(ENABLE_GN3S)
|
2012-12-27 21:11:50 +00:00
|
|
|
##############################################
|
|
|
|
# GN3S (USB dongle)
|
|
|
|
##############################################
|
2016-06-09 17:10:24 +00:00
|
|
|
find_package(GrGN3S REQUIRED)
|
|
|
|
if(NOT GR_GN3S_FOUND)
|
|
|
|
message(" gr-gn3s not found, install it from https://github.com/gnss-sdr/gr-gn3s ")
|
|
|
|
message(FATAL_ERROR "gr-gn3s required for building gnss-sdr with this option enabled")
|
|
|
|
endif(NOT GR_GN3S_FOUND)
|
|
|
|
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${GR_GN3S_LIBRARIES})
|
|
|
|
set(OPT_DRIVER_INCLUDE_DIRS ${OPT_DRIVER_INCLUDE_DIRS} ${GR_GN3S_INCLUDE_DIRS})
|
2012-12-27 21:11:50 +00:00
|
|
|
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} gn3s_signal_source.cc)
|
Improving handling of optional processing blocks and linking libraries.
New options ENABLE_GN3S, ENABLE_RTLSDR, ENABLE_OPENCL, ENABLE_ARRAY and
ENABLE_GPERFTOOLS, all set by default to OFF. Users can enable that
features by 'cmake -DENABLE_XXX=ON ../ '. OpenCL is now not used by
default since it was giving problems in some platforms. Old variables
(RTSDR_DRIVER, GN3S_DRIVER, RAW_ARRAY_DRIVER and DISABLE_OPENCL) are
still honored and can be used in the same way, but the new ENABLE_XXX
are recommended for the sake of more uniform naming. Main CMakeFile.txt
has been rearranged, putting options first, then searching for the
required libraries, and then the optional ones. If Gperftools is enabled
and found, binaries are linked to the tcmalloc and profiler libraries,
and using the adequate flags. Fixed building in Mac OSX if Armadillo and
OpenBLAS were not installed in the system.
2014-08-07 19:04:01 +00:00
|
|
|
endif(ENABLE_GN3S)
|
2012-12-24 02:33:50 +00:00
|
|
|
|
2016-06-09 17:10:24 +00:00
|
|
|
|
2015-03-03 17:07:26 +00:00
|
|
|
if(ENABLE_FLEXIBAND)
|
|
|
|
##############################################
|
|
|
|
# TELEORBIT FLEXIBAND FRONTEND ADAPTER
|
|
|
|
##############################################
|
2016-06-09 17:10:24 +00:00
|
|
|
find_package(Teleorbit REQUIRED)
|
|
|
|
if(NOT TELEORBIT_FOUND)
|
|
|
|
message(FATAL_ERROR "Teleorbit Flexiband GNU Radio driver required to build gnss-sdr with the optional FLEXIBAND adapter")
|
|
|
|
endif(NOT TELEORBIT_FOUND)
|
2015-05-08 06:59:38 +00:00
|
|
|
|
2015-03-03 17:07:26 +00:00
|
|
|
# Set up variables
|
2016-06-09 17:10:24 +00:00
|
|
|
set(FLEXIBAND_DRIVER_INCLUDE_DIRS
|
|
|
|
${OPT_DRIVER_INCLUDE_DIRS}
|
|
|
|
${TELEORBIT_INCLUDE_DIR}/teleorbit
|
|
|
|
)
|
|
|
|
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${TELEORBIT_LIBRARIES})
|
|
|
|
set(OPT_DRIVER_INCLUDE_DIRS ${OPT_DRIVER_INCLUDE_DIRS} ${FLEXIBAND_DRIVER_INCLUDE_DIRS})
|
|
|
|
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} flexiband_signal_source.cc)
|
2015-03-03 17:07:26 +00:00
|
|
|
endif(ENABLE_FLEXIBAND)
|
|
|
|
|
Improving handling of optional processing blocks and linking libraries.
New options ENABLE_GN3S, ENABLE_RTLSDR, ENABLE_OPENCL, ENABLE_ARRAY and
ENABLE_GPERFTOOLS, all set by default to OFF. Users can enable that
features by 'cmake -DENABLE_XXX=ON ../ '. OpenCL is now not used by
default since it was giving problems in some platforms. Old variables
(RTSDR_DRIVER, GN3S_DRIVER, RAW_ARRAY_DRIVER and DISABLE_OPENCL) are
still honored and can be used in the same way, but the new ENABLE_XXX
are recommended for the sake of more uniform naming. Main CMakeFile.txt
has been rearranged, putting options first, then searching for the
required libraries, and then the optional ones. If Gperftools is enabled
and found, binaries are linked to the tcmalloc and profiler libraries,
and using the adequate flags. Fixed building in Mac OSX if Armadillo and
OpenBLAS were not installed in the system.
2014-08-07 19:04:01 +00:00
|
|
|
|
|
|
|
if(ENABLE_ARRAY)
|
2014-02-17 18:53:45 +00:00
|
|
|
##############################################
|
2016-06-09 17:10:24 +00:00
|
|
|
# DBFCTTC GNSS EXPERIMENTAL ARRAY PROTOTYPE
|
2014-02-17 18:53:45 +00:00
|
|
|
##############################################
|
2016-06-09 17:10:24 +00:00
|
|
|
find_package(GrDbfcttc REQUIRED)
|
|
|
|
if(NOT GR_DBFCTTC_FOUND)
|
|
|
|
message(" gr-dbfcttc not found, install it from https://github.com/gnss-sdr/gr-dbfcttc ")
|
|
|
|
message(FATAL_ERROR "gr-dbfcttc required for building gnss-sdr with this option enabled")
|
|
|
|
endif(NOT GR_DBFCTTC_FOUND)
|
|
|
|
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${GR_DBFCTTC_LIBRARIES})
|
|
|
|
set(OPT_DRIVER_INCLUDE_DIRS ${OPT_DRIVER_INCLUDE_DIRS} ${GR_DBFCTTC_INCLUDE_DIRS})
|
2014-02-17 18:53:45 +00:00
|
|
|
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} raw_array_signal_source.cc)
|
Improving handling of optional processing blocks and linking libraries.
New options ENABLE_GN3S, ENABLE_RTLSDR, ENABLE_OPENCL, ENABLE_ARRAY and
ENABLE_GPERFTOOLS, all set by default to OFF. Users can enable that
features by 'cmake -DENABLE_XXX=ON ../ '. OpenCL is now not used by
default since it was giving problems in some platforms. Old variables
(RTSDR_DRIVER, GN3S_DRIVER, RAW_ARRAY_DRIVER and DISABLE_OPENCL) are
still honored and can be used in the same way, but the new ENABLE_XXX
are recommended for the sake of more uniform naming. Main CMakeFile.txt
has been rearranged, putting options first, then searching for the
required libraries, and then the optional ones. If Gperftools is enabled
and found, binaries are linked to the tcmalloc and profiler libraries,
and using the adequate flags. Fixed building in Mac OSX if Armadillo and
OpenBLAS were not installed in the system.
2014-08-07 19:04:01 +00:00
|
|
|
endif(ENABLE_ARRAY)
|
2012-12-27 21:11:50 +00:00
|
|
|
|
|
|
|
|
2014-12-15 16:39:22 +00:00
|
|
|
if(ENABLE_OSMOSDR)
|
2012-12-27 17:09:16 +00:00
|
|
|
################################################################################
|
|
|
|
# OsmoSDR - http://sdr.osmocom.org/trac/
|
2015-05-08 06:59:38 +00:00
|
|
|
################################################################################
|
2014-12-15 16:39:22 +00:00
|
|
|
if(NOT GROSMOSDR_FOUND)
|
Improve portability
In some architectures (e.g. alpha, hppa, powerpcspe, m68k, sh4, sparc64, x32) the package gr-osmosdr is not available. So when the package is build with -DENABLE_OSMOSDR=ON, it breaks on the mentioned architectures. This is expected behaviour (it breaks because a required dependency is not found), but prevents from building the package on such architectures. This commit introduces a small change: when compilation is called with
cmake -DENABLE_OSMOSDR=ON -DENABLE_PACKAGING=ON ..
then, the compilation does not break if gr-osmosdr is not found.
This commit also fixes building when UHD is present but gnuradio-uhd is not (for instance, in hurd-i386)
2017-04-12 16:06:04 +00:00
|
|
|
if(ENABLE_PACKAGING)
|
|
|
|
list(REMOVE_ITEM SIGNAL_SOURCE_ADAPTER_HEADERS ${CMAKE_SOURCE_DIR}/src/algorithms/signal_source/adapters/osmosdr_signal_source.h)
|
|
|
|
endif(ENABLE_PACKAGING)
|
|
|
|
else(NOT GROSMOSDR_FOUND)
|
|
|
|
# set OSMO include dirs
|
|
|
|
set(OSMO_DRIVER_INCLUDE_DIRS
|
|
|
|
${OPT_DRIVER_INCLUDE_DIRS}
|
|
|
|
${GROSMOSDR_INCLUDE_DIR}/osmosdr
|
|
|
|
)
|
|
|
|
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} osmosdr_signal_source.cc)
|
|
|
|
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${GROSMOSDR_LIBRARIES})
|
|
|
|
set(OPT_DRIVER_INCLUDE_DIRS ${OPT_DRIVER_INCLUDE_DIRS} ${OSMO_DRIVER_INCLUDE_DIRS})
|
2015-05-08 06:59:38 +00:00
|
|
|
endif(NOT GROSMOSDR_FOUND)
|
2014-12-15 16:39:22 +00:00
|
|
|
endif(ENABLE_OSMOSDR)
|
2012-12-24 02:33:50 +00:00
|
|
|
|
Improve portability
In some architectures (e.g. alpha, hppa, powerpcspe, m68k, sh4, sparc64, x32) the package gr-osmosdr is not available. So when the package is build with -DENABLE_OSMOSDR=ON, it breaks on the mentioned architectures. This is expected behaviour (it breaks because a required dependency is not found), but prevents from building the package on such architectures. This commit introduces a small change: when compilation is called with
cmake -DENABLE_OSMOSDR=ON -DENABLE_PACKAGING=ON ..
then, the compilation does not break if gr-osmosdr is not found.
This commit also fixes building when UHD is present but gnuradio-uhd is not (for instance, in hurd-i386)
2017-04-12 16:06:04 +00:00
|
|
|
if(ENABLE_UHD AND GNURADIO_UHD_LIBRARIES_gnuradio-uhd)
|
2014-11-14 20:42:22 +00:00
|
|
|
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} uhd_signal_source.cc)
|
|
|
|
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${UHD_LIBRARIES} ${GNURADIO_UHD_LIBRARIES})
|
2015-05-08 06:59:38 +00:00
|
|
|
set(OPT_DRIVER_INCLUDE_DIRS ${OPT_DRIVER_INCLUDE_DIRS} ${UHD_INCLUDE_DIRS})
|
Improve portability
In some architectures (e.g. alpha, hppa, powerpcspe, m68k, sh4, sparc64, x32) the package gr-osmosdr is not available. So when the package is build with -DENABLE_OSMOSDR=ON, it breaks on the mentioned architectures. This is expected behaviour (it breaks because a required dependency is not found), but prevents from building the package on such architectures. This commit introduces a small change: when compilation is called with
cmake -DENABLE_OSMOSDR=ON -DENABLE_PACKAGING=ON ..
then, the compilation does not break if gr-osmosdr is not found.
This commit also fixes building when UHD is present but gnuradio-uhd is not (for instance, in hurd-i386)
2017-04-12 16:06:04 +00:00
|
|
|
else(ENABLE_UHD AND GNURADIO_UHD_LIBRARIES_gnuradio-uhd)
|
|
|
|
list(REMOVE_ITEM SIGNAL_SOURCE_ADAPTER_HEADERS ${CMAKE_SOURCE_DIR}/src/algorithms/signal_source/adapters/uhd_signal_source.h)
|
|
|
|
endif(ENABLE_UHD AND GNURADIO_UHD_LIBRARIES_gnuradio-uhd)
|
2014-11-14 20:42:22 +00:00
|
|
|
|
|
|
|
|
2015-05-08 06:59:38 +00:00
|
|
|
set(SIGNAL_SOURCE_ADAPTER_SOURCES file_signal_source.cc
|
|
|
|
gen_signal_source.cc
|
|
|
|
nsr_file_signal_source.cc
|
2015-01-14 16:26:41 +00:00
|
|
|
spir_file_signal_source.cc
|
2018-01-12 12:15:20 +00:00
|
|
|
spir_gss6450_file_signal_source.cc
|
2017-10-31 15:02:18 +00:00
|
|
|
rtl_tcp_signal_source.cc
|
2018-01-23 16:31:42 +00:00
|
|
|
labsat_signal_source.cc
|
2013-12-14 10:23:33 +00:00
|
|
|
${OPT_DRIVER_SOURCES}
|
|
|
|
)
|
2012-12-24 02:33:50 +00:00
|
|
|
|
2015-07-19 09:18:20 +00:00
|
|
|
if(PC_GNURADIO_RUNTIME_VERSION VERSION_GREATER 3.7.3)
|
2015-10-08 11:08:43 +00:00
|
|
|
set(SIGNAL_SOURCE_ADAPTER_SOURCES ${SIGNAL_SOURCE_ADAPTER_SOURCES}
|
|
|
|
two_bit_cpx_file_signal_source.cc
|
|
|
|
two_bit_packed_file_signal_source.cc )
|
2015-07-19 09:18:20 +00:00
|
|
|
endif(PC_GNURADIO_RUNTIME_VERSION VERSION_GREATER 3.7.3)
|
2013-07-04 13:47:40 +00:00
|
|
|
|
2012-12-24 02:33:50 +00:00
|
|
|
include_directories(
|
2012-12-27 17:09:16 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${OPT_DRIVER_INCLUDE_DIRS}
|
2012-12-24 02:33:50 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/src/core/system_parameters
|
|
|
|
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
|
|
|
${CMAKE_SOURCE_DIR}/src/algorithms/libs
|
2015-05-10 13:42:13 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/src/algorithms/signal_source/libs
|
2013-10-14 16:51:47 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/src/algorithms/signal_source/gnuradio_blocks
|
2013-07-04 13:47:40 +00:00
|
|
|
${GLOG_INCLUDE_DIRS}
|
2015-05-08 06:59:38 +00:00
|
|
|
${GFlags_INCLUDE_DIRS}
|
2013-07-06 11:22:44 +00:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2013-12-15 22:27:37 +00:00
|
|
|
${GNURADIO_RUNTIME_INCLUDE_DIRS}
|
2015-02-04 01:29:38 +00:00
|
|
|
${VOLK_INCLUDE_DIRS}
|
2012-12-24 02:33:50 +00:00
|
|
|
)
|
|
|
|
|
2013-11-09 10:51:11 +00:00
|
|
|
if(ARCH_64BITS)
|
|
|
|
add_definitions(-DARCH_64BITS=1)
|
|
|
|
endif(ARCH_64BITS)
|
|
|
|
|
2014-11-05 22:26:31 +00:00
|
|
|
add_definitions(-DGNSSSDR_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}")
|
|
|
|
|
2014-06-28 01:55:57 +00:00
|
|
|
add_library(signal_source_adapters ${SIGNAL_SOURCE_ADAPTER_SOURCES} ${SIGNAL_SOURCE_ADAPTER_HEADERS})
|
|
|
|
source_group(Headers FILES ${SIGNAL_SOURCE_ADAPTER_HEADERS})
|
2015-05-08 06:59:38 +00:00
|
|
|
target_link_libraries(signal_source_adapters signal_source_gr_blocks
|
|
|
|
${Boost_LIBRARIES}
|
|
|
|
${GNURADIO_PMT_LIBRARIES}
|
|
|
|
${GNURADIO_BLOCKS_LIBRARIES}
|
|
|
|
${OPT_LIBRARIES}
|
2013-12-14 10:23:33 +00:00
|
|
|
gnss_sp_libs
|
|
|
|
)
|