2020-12-30 12:35:06 +00:00
|
|
|
# GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2012-12-24 02:33:50 +00:00
|
|
|
# This file is part of GNSS-SDR.
|
|
|
|
#
|
2020-12-30 12:35:06 +00:00
|
|
|
# SPDX-FileCopyrightText: 2010-2020 C. Fernandez-Prades cfernandez(at)cttc.es
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
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
|
|
|
|
2019-08-02 12:59:05 +00:00
|
|
|
if(ENABLE_OPENCL)
|
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
|
|
|
|
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
|
|
|
|
2020-06-12 22:32:40 +00:00
|
|
|
if(USE_CMAKE_TARGET_SOURCES)
|
2020-06-08 18:04:01 +00:00
|
|
|
add_library(acquisition_gr_blocks STATIC)
|
|
|
|
target_sources(acquisition_gr_blocks
|
|
|
|
PRIVATE
|
|
|
|
${ACQ_GR_BLOCKS_SOURCES}
|
|
|
|
PUBLIC
|
2020-06-27 17:48:33 +00:00
|
|
|
${ACQ_GR_BLOCKS_HEADERS}
|
2020-06-08 18:04:01 +00:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
source_group(Headers FILES ${ACQ_GR_BLOCKS_HEADERS})
|
|
|
|
add_library(acquisition_gr_blocks ${ACQ_GR_BLOCKS_SOURCES} ${ACQ_GR_BLOCKS_HEADERS})
|
|
|
|
endif()
|
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
|
2019-06-24 11:39:34 +00:00
|
|
|
algorithms_libs
|
2019-07-29 19:22:44 +00:00
|
|
|
acquisition_libs
|
|
|
|
channel_libs
|
|
|
|
core_system_parameters
|
|
|
|
Armadillo::armadillo
|
2019-02-03 18:24:44 +00:00
|
|
|
Gnuradio::runtime
|
|
|
|
Gnuradio::fft
|
|
|
|
Volk::volk
|
2019-10-26 20:24:42 +00:00
|
|
|
Volkgnsssdr::volkgnsssdr
|
2019-02-03 18:24:44 +00:00
|
|
|
PRIVATE
|
2019-02-04 21:44:45 +00:00
|
|
|
Gflags::gflags
|
|
|
|
Glog::glog
|
2019-02-03 18:24:44 +00:00
|
|
|
Matio::matio
|
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
|
|
|
PRIVATE
|
2022-07-28 08:37:36 +00:00
|
|
|
${GNSSSDR_SOURCE_DIR}/src/core/receiver
|
2019-02-03 18:24:44 +00:00
|
|
|
)
|
2018-02-23 16:57:53 +00:00
|
|
|
|
2020-04-02 21:59:35 +00:00
|
|
|
if(GNURADIO_USES_STD_POINTERS)
|
|
|
|
target_compile_definitions(acquisition_gr_blocks
|
|
|
|
PUBLIC -DGNURADIO_USES_STD_POINTERS=1
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2019-08-12 09:33:51 +00:00
|
|
|
if(ENABLE_ARMA_NO_DEBUG)
|
2019-07-29 19:22:44 +00:00
|
|
|
target_compile_definitions(acquisition_gr_blocks
|
|
|
|
PUBLIC -DARMA_NO_BOUND_CHECKING=1
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2020-05-07 19:47:45 +00:00
|
|
|
if(has_span)
|
|
|
|
target_compile_definitions(acquisition_gr_blocks
|
|
|
|
PRIVATE -DHAS_STD_SPAN=1
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2019-08-02 12:59:05 +00:00
|
|
|
if(ENABLE_OPENCL)
|
2019-06-24 09:25:18 +00:00
|
|
|
target_link_libraries(acquisition_gr_blocks PUBLIC OpenCL::OpenCL)
|
2019-06-24 11:39:34 +00:00
|
|
|
target_include_directories(acquisition_gr_blocks
|
|
|
|
PUBLIC
|
2022-07-28 08:37:36 +00:00
|
|
|
${GNSSSDR_SOURCE_DIR}/src/algorithms/libs/opencl
|
2019-06-24 11:39:34 +00:00
|
|
|
)
|
2018-11-24 17:40:34 +00:00
|
|
|
endif()
|
2019-02-03 18:24:44 +00:00
|
|
|
|
2023-12-13 21:12:29 +00:00
|
|
|
if(VOLK_VERSION)
|
|
|
|
if(VOLK_VERSION VERSION_GREATER 3.0.99)
|
|
|
|
target_compile_definitions(acquisition_gr_blocks
|
|
|
|
PRIVATE -DVOLK_EQUAL_OR_GREATER_31=1
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
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}>
|
2022-07-28 08:37:36 +00:00
|
|
|
$<BUILD_INTERFACE:${GNSSSDR_SOURCE_DIR}/src/algorithms/libs/opencl>
|
2019-02-03 18:24:44 +00:00
|
|
|
)
|