mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-07 18:54:06 +00:00
39 lines
956 B
CMake
39 lines
956 B
CMake
# GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
|
# This file is part of GNSS-SDR.
|
|
#
|
|
# SPDX-FileCopyrightText: 2010-2020 C. Fernandez-Prades cfernandez(at)cttc.es
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
if(USE_CMAKE_TARGET_SOURCES)
|
|
add_library(observables_libs STATIC)
|
|
target_sources(observables_libs
|
|
PRIVATE
|
|
obs_conf.cc
|
|
PUBLIC
|
|
obs_conf.h
|
|
)
|
|
else()
|
|
source_group(Headers FILES obs_conf.h)
|
|
add_library(observables_libs obs_conf.cc obs_conf.h)
|
|
endif()
|
|
|
|
target_link_libraries(observables_libs
|
|
PRIVATE
|
|
gnss_sdr_flags
|
|
)
|
|
|
|
if(ENABLE_CLANG_TIDY)
|
|
if(CLANG_TIDY_EXE)
|
|
set_target_properties(observables_libs
|
|
PROPERTIES
|
|
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
set_property(TARGET observables_libs
|
|
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
)
|