2020-02-11 23:04:29 +00:00
|
|
|
# Copyright (C) 2012-2020 (see AUTHORS file for a list of contributors)
|
|
|
|
#
|
|
|
|
# GNSS-SDR is a software-defined Global Navigation Satellite Systems receiver
|
2012-12-24 02:33:50 +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
|
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_adapters STATIC)
|
|
|
|
target_sources(obs_adapters
|
|
|
|
PRIVATE
|
|
|
|
hybrid_observables.cc
|
|
|
|
PUBLIC
|
|
|
|
hybrid_observables.h
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
source_group(Headers FILES hybrid_observables.h)
|
|
|
|
add_library(obs_adapters hybrid_observables.cc hybrid_observables.h)
|
|
|
|
endif()
|
2019-02-04 21:44:45 +00:00
|
|
|
|
|
|
|
target_include_directories(obs_adapters
|
|
|
|
PUBLIC
|
2019-02-10 00:13:02 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
2019-02-04 21:44:45 +00:00
|
|
|
)
|
2019-02-03 18:24:44 +00:00
|
|
|
|
|
|
|
target_link_libraries(obs_adapters
|
|
|
|
PUBLIC
|
|
|
|
obs_gr_blocks
|
|
|
|
PRIVATE
|
2020-02-10 18:51:33 +00:00
|
|
|
gnss_sdr_flags
|
2019-02-03 18:24:44 +00:00
|
|
|
Glog::glog
|
|
|
|
)
|
|
|
|
|
2019-02-21 08:59:06 +00:00
|
|
|
if(ENABLE_CLANG_TIDY)
|
|
|
|
if(CLANG_TIDY_EXE)
|
|
|
|
set_target_properties(obs_adapters
|
|
|
|
PROPERTIES
|
|
|
|
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-02-03 18:24:44 +00:00
|
|
|
set_property(TARGET obs_adapters
|
|
|
|
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
|
|
)
|