2020-01-13 00:49:00 +00:00
|
|
|
# Copyright (C) 2012-2020 (see AUTHORS file for a list of contributors)
|
2013-10-14 16:51:47 +00:00
|
|
|
#
|
2020-02-11 23:04:29 +00:00
|
|
|
# GNSS-SDR is a software-defined Global Navigation Satellite Systems receiver
|
|
|
|
#
|
2013-10-14 16:51:47 +00:00
|
|
|
# This file is part of GNSS-SDR.
|
|
|
|
#
|
2020-02-08 00:20:02 +00:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2013-10-14 16:51:47 +00:00
|
|
|
#
|
|
|
|
|
2020-02-29 13:33:09 +00:00
|
|
|
set(OPT_DRIVER_SOURCES "")
|
|
|
|
set(OPT_DRIVER_HEADERS "")
|
2019-02-04 17:17:35 +00:00
|
|
|
if(ENABLE_RAW_UDP AND PCAP_FOUND)
|
2020-02-29 13:33:09 +00:00
|
|
|
set(OPT_DRIVER_SOURCES gr_complex_ip_packet_source.cc)
|
|
|
|
set(OPT_DRIVER_HEADERS gr_complex_ip_packet_source.h)
|
2018-11-24 17:40:34 +00:00
|
|
|
endif()
|
2018-05-16 09:36:37 +00:00
|
|
|
|
2018-10-04 20:35:44 +00:00
|
|
|
|
2015-05-08 06:59:38 +00:00
|
|
|
set(SIGNAL_SOURCE_GR_BLOCKS_SOURCES
|
2018-11-21 23:35:21 +00:00
|
|
|
unpack_byte_2bit_samples.cc
|
|
|
|
unpack_byte_2bit_cpx_samples.cc
|
|
|
|
unpack_byte_4bit_samples.cc
|
|
|
|
unpack_intspir_1bit_samples.cc
|
|
|
|
rtl_tcp_signal_source_c.cc
|
|
|
|
unpack_2bit_samples.cc
|
|
|
|
unpack_spir_gss6450_samples.cc
|
|
|
|
labsat23_source.cc
|
|
|
|
${OPT_DRIVER_SOURCES}
|
2013-10-14 16:51:47 +00:00
|
|
|
)
|
|
|
|
|
2018-11-21 23:35:21 +00:00
|
|
|
|
2018-10-04 20:35:44 +00:00
|
|
|
set(SIGNAL_SOURCE_GR_BLOCKS_HEADERS
|
2018-11-21 23:35:21 +00:00
|
|
|
unpack_byte_2bit_samples.h
|
|
|
|
unpack_byte_2bit_cpx_samples.h
|
|
|
|
unpack_byte_4bit_samples.h
|
|
|
|
unpack_intspir_1bit_samples.h
|
|
|
|
rtl_tcp_signal_source_c.h
|
|
|
|
unpack_2bit_samples.h
|
|
|
|
unpack_spir_gss6450_samples.h
|
|
|
|
labsat23_source.h
|
|
|
|
${OPT_DRIVER_HEADERS}
|
2018-10-04 20:35:44 +00:00
|
|
|
)
|
|
|
|
|
2016-05-23 17:51:59 +00:00
|
|
|
list(SORT SIGNAL_SOURCE_GR_BLOCKS_HEADERS)
|
2018-10-04 20:35:44 +00:00
|
|
|
list(SORT SIGNAL_SOURCE_GR_BLOCKS_SOURCES)
|
|
|
|
|
2019-02-04 21:44:45 +00:00
|
|
|
source_group(Headers FILES ${SIGNAL_SOURCE_GR_BLOCKS_HEADERS})
|
|
|
|
|
2018-11-24 17:40:34 +00:00
|
|
|
add_library(signal_source_gr_blocks
|
|
|
|
${SIGNAL_SOURCE_GR_BLOCKS_SOURCES}
|
|
|
|
${SIGNAL_SOURCE_GR_BLOCKS_HEADERS}
|
|
|
|
)
|
|
|
|
|
2018-11-18 20:24:54 +00:00
|
|
|
target_link_libraries(signal_source_gr_blocks
|
2019-02-03 18:24:44 +00:00
|
|
|
PUBLIC
|
2019-07-21 10:55:59 +00:00
|
|
|
signal_source_libs
|
2019-02-03 18:24:44 +00:00
|
|
|
Boost::thread
|
2019-02-07 20:31:40 +00:00
|
|
|
Gnuradio::runtime
|
2019-02-03 18:24:44 +00:00
|
|
|
PRIVATE
|
2019-07-21 10:55:59 +00:00
|
|
|
core_libs
|
2019-02-03 19:28:49 +00:00
|
|
|
Gflags::gflags
|
2019-02-03 18:24:44 +00:00
|
|
|
Glog::glog
|
2018-05-11 11:21:53 +00:00
|
|
|
)
|
2018-11-24 17:40:34 +00:00
|
|
|
|
2019-07-21 10:55:59 +00:00
|
|
|
target_include_directories(signal_source_gr_blocks
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_SOURCE_DIR}/src/core/receiver
|
|
|
|
)
|
|
|
|
|
2019-02-04 15:07:29 +00:00
|
|
|
if(ENABLE_RAW_UDP AND PCAP_FOUND)
|
|
|
|
target_link_libraries(signal_source_gr_blocks
|
|
|
|
PUBLIC
|
|
|
|
Pcap::pcap
|
|
|
|
)
|
|
|
|
endif()
|
2019-02-03 18:24:44 +00:00
|
|
|
|
2019-05-26 00:09:53 +00:00
|
|
|
# Fix for Boost Asio < 1.70
|
2020-01-13 00:49:00 +00:00
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
2019-07-22 12:13:57 +00:00
|
|
|
if((CMAKE_CXX_COMPILER_ID MATCHES "Clang") AND (Boost_VERSION_STRING VERSION_LESS 1.70.0))
|
2019-05-26 00:09:53 +00:00
|
|
|
if(${has_string_view})
|
|
|
|
target_compile_definitions(signal_source_gr_blocks
|
|
|
|
PUBLIC
|
|
|
|
-DBOOST_ASIO_HAS_STD_STRING_VIEW=1
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
target_compile_definitions(signal_source_gr_blocks
|
|
|
|
PUBLIC
|
|
|
|
-DBOOST_ASIO_HAS_STD_STRING_VIEW=0
|
|
|
|
)
|
|
|
|
endif()
|
2019-02-20 21:21:53 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-07-22 12:13:57 +00:00
|
|
|
if(Boost_VERSION_STRING VERSION_GREATER 1.65.99)
|
2019-05-08 14:15:59 +00:00
|
|
|
target_compile_definitions(signal_source_gr_blocks
|
|
|
|
PUBLIC
|
|
|
|
-DBOOST_GREATER_1_65
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2019-02-21 08:59:06 +00:00
|
|
|
if(ENABLE_CLANG_TIDY)
|
|
|
|
if(CLANG_TIDY_EXE)
|
|
|
|
set_target_properties(signal_source_gr_blocks
|
|
|
|
PROPERTIES
|
|
|
|
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-02-10 00:13:02 +00:00
|
|
|
set_property(TARGET signal_source_gr_blocks APPEND PROPERTY
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
2019-02-03 18:24:44 +00:00
|
|
|
)
|