mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-09-27 06:38:23 +00:00
0d60d97c24
Update copyright year in headers
78 lines
2.9 KiB
CMake
78 lines
2.9 KiB
CMake
# Copyright (C) 2012-2018 (see AUTHORS file for a list of contributors)
|
|
#
|
|
# 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
|
|
# (at your option) any later version.
|
|
#
|
|
# 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
|
|
# along with GNSS-SDR. If not, see <https://www.gnu.org/licenses/>.
|
|
#
|
|
|
|
|
|
set(ACQ_GR_BLOCKS_SOURCES
|
|
pcps_acquisition.cc
|
|
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
|
|
)
|
|
|
|
if(ENABLE_FPGA)
|
|
set(ACQ_GR_BLOCKS_SOURCES ${ACQ_GR_BLOCKS_SOURCES} pcps_acquisition_fpga.cc)
|
|
endif(ENABLE_FPGA)
|
|
|
|
if(OPENCL_FOUND)
|
|
set(ACQ_GR_BLOCKS_SOURCES ${ACQ_GR_BLOCKS_SOURCES} pcps_opencl_acquisition_cc.cc)
|
|
endif(OPENCL_FOUND)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_SOURCE_DIR}/src/core/system_parameters
|
|
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
|
${CMAKE_SOURCE_DIR}/src/core/receiver
|
|
${CMAKE_SOURCE_DIR}/src/algorithms/acquisition/libs
|
|
${CMAKE_SOURCE_DIR}/src/algorithms/libs
|
|
${GLOG_INCLUDE_DIRS}
|
|
${GFlags_INCLUDE_DIRS}
|
|
${ARMADILLO_INCLUDE_DIRS}
|
|
${GNURADIO_RUNTIME_INCLUDE_DIRS}
|
|
${VOLK_GNSSSDR_INCLUDE_DIRS}
|
|
${MATIO_INCLUDE_DIRS}
|
|
)
|
|
|
|
|
|
if(OPENCL_FOUND)
|
|
include_directories( ${OPENCL_INCLUDE_DIRS} )
|
|
if(OS_IS_MACOSX)
|
|
set(OPT_LIBRARIES ${OPT_LIBRARIES} "-framework OpenCL")
|
|
else(OS_IS_MACOSX)
|
|
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${OPENCL_LIBRARIES})
|
|
endif(OS_IS_MACOSX)
|
|
endif(OPENCL_FOUND)
|
|
|
|
file(GLOB ACQ_GR_BLOCKS_HEADERS "*.h")
|
|
list(SORT ACQ_GR_BLOCKS_HEADERS)
|
|
add_library(acq_gr_blocks ${ACQ_GR_BLOCKS_SOURCES} ${ACQ_GR_BLOCKS_HEADERS})
|
|
source_group(Headers FILES ${ACQ_GR_BLOCKS_HEADERS})
|
|
|
|
if(ENABLE_FPGA)
|
|
target_link_libraries(acq_gr_blocks acquisition_lib gnss_sp_libs gnss_system_parameters ${GNURADIO_RUNTIME_LIBRARIES} ${GNURADIO_FFT_LIBRARIES} ${VOLK_LIBRARIES} ${VOLK_GNSSSDR_LIBRARIES} ${OPT_LIBRARIES} ${OPT_ACQUISITION_LIBRARIES})
|
|
else(ENABLE_FPGA)
|
|
target_link_libraries(acq_gr_blocks gnss_sp_libs gnss_system_parameters ${GNURADIO_RUNTIME_LIBRARIES} ${GNURADIO_FFT_LIBRARIES} ${VOLK_LIBRARIES} ${VOLK_GNSSSDR_LIBRARIES} ${OPT_LIBRARIES} ${OPT_ACQUISITION_LIBRARIES} ${MATIO_LIBRARIES})
|
|
endif(ENABLE_FPGA)
|
|
|
|
if(NOT VOLK_GNSSSDR_FOUND)
|
|
add_dependencies(acq_gr_blocks volk_gnsssdr_module)
|
|
endif(NOT VOLK_GNSSSDR_FOUND)
|