2019-02-03 18:24:44 +00:00
|
|
|
# Copyright (C) 2012-2019 (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
|
|
|
#
|
|
|
|
|
2015-02-13 01:17:00 +00:00
|
|
|
|
|
|
|
set(ACQ_GR_BLOCKS_SOURCES
|
2018-02-07 07:43:44 +00:00
|
|
|
pcps_acquisition.cc
|
2015-02-13 01:17:00 +00:00
|
|
|
pcps_assisted_acquisition_cc.cc
|
|
|
|
pcps_acquisition_fine_doppler_cc.cc
|
|
|
|
pcps_tong_acquisition_cc.cc
|
|
|
|
pcps_cccwsr_acquisition_cc.cc
|
|
|
|
pcps_quicksync_acquisition_cc.cc
|
|
|
|
galileo_pcps_8ms_acquisition_cc.cc
|
|
|
|
galileo_e5a_noncoherent_iq_acquisition_caf_cc.cc
|
2018-10-04 20:35:44 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(ACQ_GR_BLOCKS_HEADERS
|
|
|
|
pcps_acquisition.h
|
|
|
|
pcps_assisted_acquisition_cc.h
|
|
|
|
pcps_acquisition_fine_doppler_cc.h
|
|
|
|
pcps_tong_acquisition_cc.h
|
|
|
|
pcps_cccwsr_acquisition_cc.h
|
|
|
|
pcps_quicksync_acquisition_cc.h
|
|
|
|
galileo_pcps_8ms_acquisition_cc.h
|
|
|
|
galileo_e5a_noncoherent_iq_acquisition_caf_cc.h
|
2018-10-30 11:04:59 +00:00
|
|
|
)
|
2017-05-05 14:15:27 +00:00
|
|
|
|
|
|
|
if(ENABLE_FPGA)
|
2018-04-27 18:00:50 +00:00
|
|
|
set(ACQ_GR_BLOCKS_SOURCES ${ACQ_GR_BLOCKS_SOURCES} pcps_acquisition_fpga.cc)
|
2018-10-04 20:35:44 +00:00
|
|
|
set(ACQ_GR_BLOCKS_HEADERS ${ACQ_GR_BLOCKS_HEADERS} pcps_acquisition_fpga.h)
|
2018-11-24 17:40:34 +00:00
|
|
|
endif()
|
2018-10-30 11:04:59 +00:00
|
|
|
|
2013-10-01 20:32:04 +00:00
|
|
|
if(OPENCL_FOUND)
|
2015-02-13 01:17:00 +00:00
|
|
|
set(ACQ_GR_BLOCKS_SOURCES ${ACQ_GR_BLOCKS_SOURCES} pcps_opencl_acquisition_cc.cc)
|
2018-10-04 20:35:44 +00:00
|
|
|
set(ACQ_GR_BLOCKS_HEADERS ${ACQ_GR_BLOCKS_HEADERS} pcps_opencl_acquisition_cc.h)
|
2018-11-24 17:40:34 +00:00
|
|
|
endif()
|
2012-12-24 02:33:50 +00:00
|
|
|
|
|
|
|
|
2013-10-01 20:32:04 +00:00
|
|
|
if(OPENCL_FOUND)
|
2018-11-21 23:35:21 +00:00
|
|
|
include_directories(${OPENCL_INCLUDE_DIRS})
|
2013-10-18 18:26:06 +00:00
|
|
|
if(OS_IS_MACOSX)
|
2018-11-21 23:35:21 +00:00
|
|
|
set(OPT_LIBRARIES ${OPT_LIBRARIES} "-framework OpenCL")
|
2018-11-24 17:40:34 +00:00
|
|
|
else()
|
2018-11-21 23:35:21 +00:00
|
|
|
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${OPENCL_LIBRARIES})
|
2018-11-24 17:40:34 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
2013-10-01 20:32:04 +00:00
|
|
|
|
2016-05-23 17:51:59 +00:00
|
|
|
list(SORT ACQ_GR_BLOCKS_HEADERS)
|
2018-10-04 20:35:44 +00:00
|
|
|
list(SORT ACQ_GR_BLOCKS_SOURCES)
|
2019-02-04 21:44:45 +00:00
|
|
|
|
2018-06-19 10:59:54 +00:00
|
|
|
source_group(Headers FILES ${ACQ_GR_BLOCKS_HEADERS})
|
2018-02-23 16:57:53 +00:00
|
|
|
|
2019-02-10 17:34:28 +00:00
|
|
|
add_library(acquisition_gr_blocks ${ACQ_GR_BLOCKS_SOURCES} ${ACQ_GR_BLOCKS_HEADERS})
|
2019-02-04 21:44:45 +00:00
|
|
|
|
2019-02-10 17:34:28 +00:00
|
|
|
target_link_libraries(acquisition_gr_blocks
|
2019-02-03 18:24:44 +00:00
|
|
|
PUBLIC
|
|
|
|
Gnuradio::runtime
|
|
|
|
Gnuradio::fft
|
|
|
|
Volk::volk
|
2019-02-10 17:34:28 +00:00
|
|
|
acquisition_libs
|
|
|
|
core_system_parameters
|
2018-11-21 23:35:21 +00:00
|
|
|
${OPT_LIBRARIES}
|
2019-02-03 18:24:44 +00:00
|
|
|
PRIVATE
|
|
|
|
Boost::filesystem
|
2019-02-04 21:44:45 +00:00
|
|
|
Gflags::gflags
|
|
|
|
Glog::glog
|
2019-02-03 18:24:44 +00:00
|
|
|
Matio::matio
|
|
|
|
Volkgnsssdr::volkgnsssdr
|
2019-02-10 17:34:28 +00:00
|
|
|
algorithms_libs
|
2019-02-10 00:13:02 +00:00
|
|
|
)
|
|
|
|
|
2019-02-10 17:34:28 +00:00
|
|
|
target_include_directories(acquisition_gr_blocks
|
2019-02-10 00:13:02 +00:00
|
|
|
PUBLIC
|
|
|
|
${CMAKE_SOURCE_DIR}/src/algorithms/libs
|
|
|
|
PRIVATE
|
|
|
|
${CMAKE_SOURCE_DIR}/src/core/receiver
|
2019-02-03 18:24:44 +00:00
|
|
|
)
|
2018-02-23 16:57:53 +00:00
|
|
|
|
2019-02-03 18:24:44 +00:00
|
|
|
if(OPENCL_FOUND)
|
2019-02-10 17:34:28 +00:00
|
|
|
target_include_directories(acquisition_gr_blocks PUBLIC ${OPENCL_INCLUDE_DIRS})
|
2018-11-24 17:40:34 +00:00
|
|
|
endif()
|
2019-02-03 18:24:44 +00:00
|
|
|
|
2019-02-21 08:59:06 +00:00
|
|
|
if(ENABLE_CLANG_TIDY)
|
|
|
|
if(CLANG_TIDY_EXE)
|
|
|
|
set_target_properties(acquisition_gr_blocks
|
|
|
|
PROPERTIES
|
|
|
|
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-02-10 17:34:28 +00:00
|
|
|
set_property(TARGET acquisition_gr_blocks
|
2019-02-03 18:24:44 +00:00
|
|
|
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
|
|
)
|