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
|
|
|
|
|
|
|
|
2018-11-18 20:24:54 +00:00
|
|
|
set(DATATYPE_ADAPTER_SOURCES
|
2015-02-03 18:40:26 +00:00
|
|
|
byte_to_short.cc
|
|
|
|
ibyte_to_cbyte.cc
|
|
|
|
ibyte_to_complex.cc
|
2016-01-19 17:37:30 +00:00
|
|
|
ibyte_to_cshort.cc
|
2015-02-03 18:40:26 +00:00
|
|
|
ishort_to_cshort.cc
|
2018-11-21 23:35:21 +00:00
|
|
|
ishort_to_complex.cc
|
2018-10-04 20:35:44 +00:00
|
|
|
)
|
2018-11-18 20:24:54 +00:00
|
|
|
|
|
|
|
set(DATATYPE_ADAPTER_HEADERS
|
2018-10-04 20:35:44 +00:00
|
|
|
byte_to_short.h
|
|
|
|
ibyte_to_cbyte.h
|
|
|
|
ibyte_to_complex.h
|
|
|
|
ibyte_to_cshort.h
|
|
|
|
ishort_to_cshort.h
|
2018-11-21 23:35:21 +00:00
|
|
|
ishort_to_complex.h
|
2018-11-18 20:24:54 +00:00
|
|
|
)
|
2012-12-24 02:33:50 +00:00
|
|
|
|
2016-05-23 17:51:59 +00:00
|
|
|
list(SORT DATATYPE_ADAPTER_HEADERS)
|
2018-10-04 20:35:44 +00:00
|
|
|
list(SORT DATATYPE_ADAPTER_SOURCES)
|
|
|
|
|
2020-06-12 22:32:40 +00:00
|
|
|
if(USE_CMAKE_TARGET_SOURCES)
|
2020-06-08 18:04:01 +00:00
|
|
|
add_library(data_type_adapters STATIC)
|
|
|
|
target_sources(data_type_adapters
|
|
|
|
PRIVATE
|
|
|
|
${DATATYPE_ADAPTER_SOURCES}
|
|
|
|
PUBLIC
|
|
|
|
${DATATYPE_ADAPTER_HEADERS}
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
source_group(Headers FILES ${DATATYPE_ADAPTER_HEADERS})
|
|
|
|
add_library(data_type_adapters
|
|
|
|
${DATATYPE_ADAPTER_SOURCES}
|
|
|
|
${DATATYPE_ADAPTER_HEADERS}
|
|
|
|
)
|
|
|
|
endif()
|
2019-02-04 21:44:45 +00:00
|
|
|
|
2020-06-08 18:04:01 +00:00
|
|
|
target_include_directories(data_type_adapters
|
|
|
|
PUBLIC
|
2022-07-28 08:37:36 +00:00
|
|
|
${GNSSSDR_SOURCE_DIR}/src/core/interfaces
|
2018-11-21 23:35:21 +00:00
|
|
|
)
|
|
|
|
|
2019-02-10 17:34:28 +00:00
|
|
|
target_link_libraries(data_type_adapters
|
2019-02-03 18:24:44 +00:00
|
|
|
PUBLIC
|
2020-06-08 18:04:01 +00:00
|
|
|
algorithms_libs
|
2019-02-04 21:44:45 +00:00
|
|
|
Gnuradio::blocks
|
2019-02-03 18:24:44 +00:00
|
|
|
data_type_gr_blocks
|
|
|
|
PRIVATE
|
2019-02-04 21:44:45 +00:00
|
|
|
Gflags::gflags
|
2019-02-03 18:24:44 +00:00
|
|
|
Glog::glog
|
|
|
|
Volk::volk
|
|
|
|
)
|
|
|
|
|
2019-02-21 08:59:06 +00:00
|
|
|
if(ENABLE_CLANG_TIDY)
|
|
|
|
if(CLANG_TIDY_EXE)
|
|
|
|
set_target_properties(data_type_adapters
|
|
|
|
PROPERTIES
|
|
|
|
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-02-10 17:34:28 +00:00
|
|
|
set_property(TARGET data_type_adapters
|
2019-02-03 18:24:44 +00:00
|
|
|
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
2018-11-21 23:35:21 +00:00
|
|
|
)
|