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(channel_adapters STATIC)
|
|
|
|
target_sources(channel_adapters
|
|
|
|
PRIVATE
|
|
|
|
channel.cc
|
|
|
|
PUBLIC
|
|
|
|
channel.h
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
source_group(Headers FILES channel.h)
|
|
|
|
add_library(channel_adapters
|
|
|
|
channel.cc
|
|
|
|
channel.h
|
|
|
|
)
|
|
|
|
endif()
|
2018-11-21 23:35:21 +00:00
|
|
|
|
|
|
|
target_link_libraries(channel_adapters
|
2019-02-03 18:24:44 +00:00
|
|
|
PUBLIC
|
2019-02-10 17:34:28 +00:00
|
|
|
channel_libs
|
2019-02-03 18:24:44 +00:00
|
|
|
PRIVATE
|
2019-02-04 21:44:45 +00:00
|
|
|
gnss_sdr_flags
|
2020-06-08 18:04:01 +00:00
|
|
|
Glog::glog
|
2019-02-03 18:24:44 +00:00
|
|
|
)
|
|
|
|
|
2019-02-10 00:13:02 +00:00
|
|
|
target_include_directories(channel_adapters
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
2019-07-21 10:55:59 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/src/core/receiver
|
2019-02-10 00:13:02 +00:00
|
|
|
)
|
|
|
|
|
2019-02-21 08:59:06 +00:00
|
|
|
if(ENABLE_CLANG_TIDY)
|
|
|
|
if(CLANG_TIDY_EXE)
|
|
|
|
set_target_properties(channel_adapters
|
|
|
|
PROPERTIES
|
|
|
|
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-02-03 18:24:44 +00:00
|
|
|
set_property(TARGET channel_adapters
|
|
|
|
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
2018-11-21 23:35:21 +00:00
|
|
|
)
|