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
|
|
|
|
2020-06-12 22:32:40 +00:00
|
|
|
if(USE_CMAKE_TARGET_SOURCES)
|
2020-06-08 18:04:01 +00:00
|
|
|
add_library(obs_gr_blocks STATIC)
|
|
|
|
target_sources(obs_gr_blocks
|
|
|
|
PRIVATE
|
|
|
|
hybrid_observables_gs.cc
|
|
|
|
PUBLIC
|
|
|
|
hybrid_observables_gs.h
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
source_group(Headers FILES hybrid_observables_gs.h)
|
|
|
|
add_library(obs_gr_blocks hybrid_observables_gs.cc hybrid_observables_gs.h)
|
|
|
|
endif()
|
2019-02-03 18:24:44 +00:00
|
|
|
|
2019-02-04 21:44:45 +00:00
|
|
|
target_include_directories(obs_gr_blocks
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_SOURCE_DIR}/src/algorithms/libs
|
|
|
|
)
|
2018-11-21 23:35:21 +00:00
|
|
|
|
2019-02-03 18:24:44 +00:00
|
|
|
target_link_libraries(obs_gr_blocks
|
|
|
|
PUBLIC
|
2019-09-07 10:36:19 +00:00
|
|
|
Boost::headers
|
2019-02-04 21:44:45 +00:00
|
|
|
Gnuradio::blocks
|
2020-02-10 09:59:10 +00:00
|
|
|
observables_libs
|
2020-02-10 11:17:10 +00:00
|
|
|
PRIVATE
|
2019-03-05 07:59:04 +00:00
|
|
|
algorithms_libs
|
|
|
|
core_system_parameters
|
2019-02-04 21:44:45 +00:00
|
|
|
Gflags::gflags
|
2019-02-03 18:24:44 +00:00
|
|
|
Glog::glog
|
|
|
|
Matio::matio
|
|
|
|
)
|
2018-11-21 23:35:21 +00:00
|
|
|
|
2020-11-03 19:51:57 +00:00
|
|
|
target_include_directories(obs_gr_blocks
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
|
|
|
)
|
|
|
|
|
2020-04-02 22:17:22 +00:00
|
|
|
if(GNURADIO_USES_STD_POINTERS)
|
|
|
|
target_compile_definitions(obs_gr_blocks
|
|
|
|
PUBLIC -DGNURADIO_USES_STD_POINTERS=1
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2020-06-12 22:32:40 +00:00
|
|
|
if(USE_GENERIC_LAMBDAS)
|
2020-04-25 20:17:15 +00:00
|
|
|
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
|
|
|
|
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
|
|
|
|
target_compile_definitions(obs_gr_blocks
|
|
|
|
PRIVATE
|
|
|
|
"$<$<COMPILE_FEATURES:cxx_generic_lambdas>:${has_generic_lambdas}>"
|
|
|
|
"$<$<NOT:$<COMPILE_FEATURES:cxx_generic_lambdas>>:${no_has_generic_lambdas}>"
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
target_compile_definitions(obs_gr_blocks
|
|
|
|
PRIVATE
|
|
|
|
-DHAS_GENERIC_LAMBDA=0
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2020-06-12 22:32:40 +00:00
|
|
|
if(USE_BOOST_BIND_PLACEHOLDERS)
|
2020-05-18 20:50:34 +00:00
|
|
|
target_compile_definitions(obs_gr_blocks
|
|
|
|
PRIVATE
|
2020-06-12 22:32:40 +00:00
|
|
|
-DUSE_BOOST_BIND_PLACEHOLDERS=1
|
2020-05-18 20:50:34 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-10-30 03:43:22 +00:00
|
|
|
if(PMT_USES_BOOST_ANY)
|
|
|
|
target_compile_definitions(obs_gr_blocks
|
|
|
|
PRIVATE
|
|
|
|
-DPMT_USES_BOOST_ANY=1
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2019-02-21 08:59:06 +00:00
|
|
|
if(ENABLE_CLANG_TIDY)
|
|
|
|
if(CLANG_TIDY_EXE)
|
|
|
|
set_target_properties(obs_gr_blocks
|
|
|
|
PROPERTIES
|
|
|
|
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-02-04 19:00:29 +00:00
|
|
|
set_property(TARGET obs_gr_blocks
|
|
|
|
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
2018-11-21 23:35:21 +00:00
|
|
|
)
|