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
|
|
|
#
|
|
|
|
|
2018-07-21 11:40:52 +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(pvt_adapters STATIC)
|
|
|
|
target_sources(pvt_adapters
|
|
|
|
PRIVATE
|
|
|
|
rtklib_pvt.cc
|
|
|
|
PUBLIC
|
|
|
|
rtklib_pvt.h
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
source_group(Headers FILES rtklib_pvt.h)
|
|
|
|
add_library(pvt_adapters rtklib_pvt.cc rtklib_pvt.h)
|
|
|
|
endif()
|
2019-02-04 21:44:45 +00:00
|
|
|
|
2018-11-21 23:35:21 +00:00
|
|
|
target_link_libraries(pvt_adapters
|
2019-02-03 18:24:44 +00:00
|
|
|
PUBLIC
|
2019-02-07 21:44:31 +00:00
|
|
|
pvt_gr_blocks
|
2019-02-03 18:24:44 +00:00
|
|
|
PRIVATE
|
2019-02-26 00:38:48 +00:00
|
|
|
gnss_sdr_flags
|
2020-02-12 07:30:25 +00:00
|
|
|
Glog::glog
|
2019-02-26 00:38:48 +00:00
|
|
|
pvt_libs
|
2019-02-03 18:24:44 +00:00
|
|
|
)
|
|
|
|
|
2019-02-10 00:13:02 +00:00
|
|
|
target_include_directories(pvt_adapters
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
|
|
|
)
|
|
|
|
|
2020-06-12 22:32:40 +00:00
|
|
|
if(USE_OLD_BOOST_MATH_COMMON_FACTOR)
|
|
|
|
target_compile_definitions(pvt_adapters
|
|
|
|
PRIVATE
|
|
|
|
-DUSE_OLD_BOOST_MATH_COMMON_FACTOR=1
|
|
|
|
)
|
2019-02-03 18:24:44 +00:00
|
|
|
endif()
|
|
|
|
|
2019-02-21 08:59:06 +00:00
|
|
|
if(ENABLE_CLANG_TIDY)
|
|
|
|
if(CLANG_TIDY_EXE)
|
|
|
|
set_target_properties(pvt_adapters
|
|
|
|
PROPERTIES
|
|
|
|
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-02-03 18:24:44 +00:00
|
|
|
set_property(TARGET pvt_adapters
|
|
|
|
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
2018-11-21 23:35:21 +00:00
|
|
|
)
|