2020-12-30 12:35:06 +00:00
|
|
|
# GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2018-08-29 16:53:03 +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
|
2018-08-29 16:53:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
set(SYSTEM_TESTING_LIB_SOURCES
|
|
|
|
spirent_motion_csv_dump_reader.cc
|
|
|
|
rtklib_solver_dump_reader.cc
|
|
|
|
)
|
|
|
|
|
|
|
|
file(GLOB SYSTEM_TESTING_LIB_HEADERS "*.h")
|
|
|
|
list(SORT SYSTEM_TESTING_LIB_HEADERS)
|
2018-11-24 17:40:34 +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(system_testing_lib STATIC)
|
|
|
|
target_sources(system_testing_lib
|
|
|
|
PRIVATE
|
|
|
|
${SYSTEM_TESTING_LIB_SOURCES}
|
|
|
|
PUBLIC
|
|
|
|
${SYSTEM_TESTING_LIB_HEADERS}
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
source_group(Headers FILES ${SYSTEM_TESTING_LIB_HEADERS})
|
|
|
|
add_library(system_testing_lib
|
|
|
|
${SYSTEM_TESTING_LIB_SOURCES}
|
|
|
|
${SYSTEM_TESTING_LIB_HEADERS}
|
|
|
|
)
|
|
|
|
endif()
|
2018-08-29 16:53:03 +00:00
|
|
|
|
2019-02-03 18:24:44 +00:00
|
|
|
target_link_libraries(system_testing_lib
|
|
|
|
PUBLIC
|
|
|
|
Armadillo::armadillo
|
|
|
|
PRIVATE
|
2019-09-07 10:36:19 +00:00
|
|
|
Boost::headers
|
2019-02-03 18:24:44 +00:00
|
|
|
Matio::matio
|
|
|
|
)
|
|
|
|
|
2024-04-29 06:27:33 +00:00
|
|
|
if(ENABLE_GLOG_AND_GFLAGS)
|
|
|
|
target_link_libraries(system_testing_lib PUBLIC Gflags::gflags)
|
|
|
|
target_compile_definitions(system_testing_lib PUBLIC -DUSE_GLOG_AND_GFLAGS=1)
|
|
|
|
else()
|
|
|
|
target_link_libraries(system_testing_lib PUBLIC absl::flags)
|
|
|
|
endif()
|
|
|
|
|
2019-02-21 10:42:56 +00:00
|
|
|
if(ENABLE_CLANG_TIDY)
|
|
|
|
if(CLANG_TIDY_EXE)
|
|
|
|
set_target_properties(system_testing_lib
|
|
|
|
PROPERTIES
|
|
|
|
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-02-03 18:24:44 +00:00
|
|
|
set_property(TARGET system_testing_lib
|
|
|
|
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
|
|
)
|