1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-16 13:10:35 +00:00
gnss-sdr/src/algorithms/PVT/adapters/CMakeLists.txt

58 lines
1.2 KiB
CMake
Raw Normal View History

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
#
# This file is part of GNSS-SDR.
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
if(USE_CMAKE_TARGET_SOURCES)
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
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
gnss_sdr_flags
2020-02-12 07:30:25 +00:00
Glog::glog
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
)
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()
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}>
)