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(RESAMPLER_GR_BLOCKS_SOURCES
|
2018-11-21 23:35:21 +00:00
|
|
|
direct_resampler_conditioner_cc.cc
|
|
|
|
direct_resampler_conditioner_cs.cc
|
|
|
|
direct_resampler_conditioner_cb.cc
|
2012-12-24 02:33:50 +00:00
|
|
|
)
|
|
|
|
|
2018-11-18 20:24:54 +00:00
|
|
|
set(RESAMPLER_GR_BLOCKS_HEADERS
|
2018-11-21 23:35:21 +00:00
|
|
|
direct_resampler_conditioner_cc.h
|
|
|
|
direct_resampler_conditioner_cs.h
|
|
|
|
direct_resampler_conditioner_cb.h
|
2018-10-04 20:35:44 +00:00
|
|
|
)
|
|
|
|
|
2016-05-23 17:51:59 +00:00
|
|
|
list(SORT RESAMPLER_GR_BLOCKS_HEADERS)
|
2018-10-04 20:35:44 +00:00
|
|
|
list(SORT RESAMPLER_GR_BLOCKS_SOURCES)
|
|
|
|
|
2020-06-12 22:32:40 +00:00
|
|
|
if(USE_CMAKE_TARGET_SOURCES)
|
2020-06-08 18:04:01 +00:00
|
|
|
add_library(resampler_gr_blocks STATIC)
|
|
|
|
target_sources(resampler_gr_blocks
|
|
|
|
PRIVATE
|
|
|
|
${RESAMPLER_GR_BLOCKS_SOURCES}
|
|
|
|
PUBLIC
|
|
|
|
${RESAMPLER_GR_BLOCKS_HEADERS}
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
source_group(Headers FILES ${RESAMPLER_GR_BLOCKS_HEADERS})
|
|
|
|
add_library(resampler_gr_blocks
|
|
|
|
${RESAMPLER_GR_BLOCKS_SOURCES}
|
|
|
|
${RESAMPLER_GR_BLOCKS_HEADERS}
|
|
|
|
)
|
|
|
|
endif()
|
2018-11-21 23:35:21 +00:00
|
|
|
|
2019-02-03 18:24:44 +00:00
|
|
|
target_link_libraries(resampler_gr_blocks
|
|
|
|
PUBLIC
|
|
|
|
Gnuradio::runtime
|
2019-11-22 20:40:42 +00:00
|
|
|
Boost::headers # Fix for homebrew
|
2020-02-11 12:20:03 +00:00
|
|
|
PRIVATE
|
2020-03-01 10:53:01 +00:00
|
|
|
Volk::volk
|
2019-02-03 18:24:44 +00:00
|
|
|
)
|
2018-11-21 23:35:21 +00:00
|
|
|
|
2020-04-02 21:59:35 +00:00
|
|
|
if(GNURADIO_USES_STD_POINTERS)
|
|
|
|
target_compile_definitions(resampler_gr_blocks
|
|
|
|
PUBLIC -DGNURADIO_USES_STD_POINTERS=1
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-11-23 15:38:50 +00:00
|
|
|
if(NOT GNURADIO_USES_LOG4CPP)
|
|
|
|
target_link_libraries(resampler_gr_blocks
|
|
|
|
PUBLIC
|
|
|
|
fmt::fmt
|
|
|
|
spdlog::spdlog
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2020-11-03 19:51:57 +00:00
|
|
|
target_include_directories(resampler_gr_blocks
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
|
|
|
)
|
|
|
|
|
2019-02-21 08:59:06 +00:00
|
|
|
if(ENABLE_CLANG_TIDY)
|
|
|
|
if(CLANG_TIDY_EXE)
|
|
|
|
set_target_properties(resampler_gr_blocks
|
|
|
|
PROPERTIES
|
|
|
|
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-02-03 18:24:44 +00:00
|
|
|
set_property(TARGET resampler_gr_blocks
|
|
|
|
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
|
|
)
|