mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 12:40:35 +00:00
Merge branch 'next' of https://github.com/carlesfernandez/gnss-sdr into next
This commit is contained in:
commit
1eb8536316
@ -436,8 +436,13 @@ endif()
|
|||||||
# Find the POSIX thread (pthread) libraries
|
# Find the POSIX thread (pthread) libraries
|
||||||
################################################################################
|
################################################################################
|
||||||
if(CMAKE_VERSION VERSION_LESS 3.1)
|
if(CMAKE_VERSION VERSION_LESS 3.1)
|
||||||
|
# Workaround for CMake < 3.1
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
add_library(Threads::Threads ALIAS ${CMAKE_THREAD_LIBS_INIT})
|
add_library(Threads::Threads SHARED IMPORTED)
|
||||||
|
set_property(TARGET Threads::Threads PROPERTY INTERFACE_LINK_LIBRARIES "${CMAKE_THREAD_LIBS_INIT}")
|
||||||
|
set_property(TARGET Threads::Threads PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES "CXX")
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
set_property(TARGET Threads::Threads PROPERTY IMPORTED_LOCATION /usr/${CMAKE_INSTALL_LIBDIR}/${CMAKE_FIND_LIBRARY_PREFIXES}$pthread${CMAKE_SHARED_LIBRARY_SUFFIX})
|
||||||
else()
|
else()
|
||||||
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
||||||
if(CMAKE_CROSSCOMPILING)
|
if(CMAKE_CROSSCOMPILING)
|
||||||
@ -460,13 +465,13 @@ if(ENABLE_UNIT_TESTING OR ENABLE_SYSTEM_TESTING)
|
|||||||
endif()
|
endif()
|
||||||
if(GTEST_DIR)
|
if(GTEST_DIR)
|
||||||
message(STATUS "Googletest root folder set at ${GTEST_DIR}")
|
message(STATUS "Googletest root folder set at ${GTEST_DIR}")
|
||||||
find_path(LIBGTEST_DEV_DIR NAMES src/gtest-all.cc PATHS ${GTEST_DIR})
|
find_path(LIBGTEST_DEV_DIR NAMES googletest/src/gtest-all.cc PATHS ${GTEST_DIR})
|
||||||
if(LIBGTEST_DEV_DIR)
|
if(LIBGTEST_DEV_DIR)
|
||||||
message(STATUS "Googletest has been found.")
|
message(STATUS "Googletest has been found.")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR " Googletest source code has not been found at ${GTEST_DIR}.")
|
message(FATAL_ERROR " Googletest source code has not been found at ${GTEST_DIR}.")
|
||||||
endif()
|
endif()
|
||||||
find_path(GTEST_INCLUDE_DIRS NAMES gtest/gtest.h PATHS ${GTEST_DIR}/include)
|
find_path(GTEST_INCLUDE_DIRS NAMES gtest/gtest.h PATHS ${GTEST_DIR}/googletest/include)
|
||||||
else()
|
else()
|
||||||
find_path(LIBGTEST_DEV_DIR NAMES src/gtest-all.cc PATHS /usr/src/googletest/googletest /usr/src/gtest /usr/include/gtest /opt/local/src/gtest-1.7.0)
|
find_path(LIBGTEST_DEV_DIR NAMES src/gtest-all.cc PATHS /usr/src/googletest/googletest /usr/src/gtest /usr/include/gtest /opt/local/src/gtest-1.7.0)
|
||||||
find_path(GTEST_INCLUDE_DIRS NAMES gtest/gtest.h PATHS /usr/include /opt/local/src/gtest-1.7.0/include)
|
find_path(GTEST_INCLUDE_DIRS NAMES gtest/gtest.h PATHS /usr/include /opt/local/src/gtest-1.7.0/include)
|
||||||
|
@ -76,14 +76,6 @@ if(NOT ${GTEST_DIR_LOCAL})
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set up variables
|
|
||||||
# Set recently downloaded and build Googletest root folder
|
|
||||||
set(GTEST_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gtest/gtest-${GNSSSDR_GTEST_LOCAL_VERSION}/googletest")
|
|
||||||
# Source code
|
|
||||||
ExternalProject_Get_Property(gtest-${GNSSSDR_GTEST_LOCAL_VERSION} source_dir)
|
|
||||||
set(GTEST_INCLUDE_DIR ${source_dir}/googletest/include)
|
|
||||||
set(GTEST_INCLUDE_DIRECTORIES ${GTEST_DIR}/include ${GTEST_DIR} ${GTEST_DIR}/src)
|
|
||||||
# Library
|
|
||||||
ExternalProject_Get_Property(gtest-${GNSSSDR_GTEST_LOCAL_VERSION} binary_dir)
|
ExternalProject_Get_Property(gtest-${GNSSSDR_GTEST_LOCAL_VERSION} binary_dir)
|
||||||
if(OS_IS_MACOSX)
|
if(OS_IS_MACOSX)
|
||||||
if(CMAKE_GENERATOR STREQUAL Xcode)
|
if(CMAKE_GENERATOR STREQUAL Xcode)
|
||||||
@ -91,26 +83,69 @@ if(NOT ${GTEST_DIR_LOCAL})
|
|||||||
set(ADD_DEBUG "Debug/")
|
set(ADD_DEBUG "Debug/")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
set(GTEST_LIBRARY_PATH "${binary_dir}/googletest/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX};${binary_dir}/googletest/${CMAKE_FIND_LIBRARY_PREFIXES}gtest_main${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
|
||||||
set(GTEST_LIBRARY gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
if(NOT TARGET GTest::GTest)
|
||||||
set(GTEST_LIBRARIES
|
add_library(GTest::GTest STATIC IMPORTED)
|
||||||
${binary_dir}/googletest/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}
|
add_dependencies(GTest::GTest gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
||||||
${binary_dir}/googletest/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest_main${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}
|
set_target_properties(GTest::GTest PROPERTIES
|
||||||
Threads::Threads)
|
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
||||||
set(GTEST_LIB_DIR "${CMAKE_CURRENT_BINARY_DIR}/../../gtest-${GNSSSDR_GTEST_LOCAL_VERSION}/googletest")
|
IMPORTED_LOCATION "${binary_dir}/googletest/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||||
|
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gtest/gtest-${GNSSSDR_GTEST_LOCAL_VERSION}/googletest/include"
|
||||||
|
INTERFACE_LINK_LIBRARIES "${binary_dir}/googletest/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||||
|
)
|
||||||
|
set_target_properties(GTest::GTest PROPERTIES
|
||||||
|
INTERFACE_LINK_LIBRARIES Threads::Threads
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
if(NOT TARGET GTest::Main)
|
||||||
|
add_library(GTest::Main STATIC IMPORTED)
|
||||||
|
add_dependencies(GTest::Main gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
||||||
|
set_target_properties(GTest::Main PROPERTIES
|
||||||
|
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
||||||
|
IMPORTED_LOCATION "${binary_dir}/googletest/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest_main${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||||
|
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gtest/gtest-${GNSSSDR_GTEST_LOCAL_VERSION}/googletest/include"
|
||||||
|
INTERFACE_LINK_LIBRARIES "${binary_dir}/googletest/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest_main${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
if(GTEST_INCLUDE_DIRS)
|
if(GTEST_INCLUDE_DIRS)
|
||||||
set(GTEST_INCLUDE_DIRECTORIES ${GTEST_INCLUDE_DIRS} ${LIBGTEST_DEV_DIR})
|
set(GTEST_INCLUDE_DIRECTORIES ${GTEST_INCLUDE_DIRS} ${LIBGTEST_DEV_DIR})
|
||||||
add_library(gtest ${LIBGTEST_DEV_DIR}/src/gtest-all.cc ${LIBGTEST_DEV_DIR}/src/gtest_main.cc)
|
add_library(gtest STATIC ${LIBGTEST_DEV_DIR}/googletest/src/gtest-all.cc)
|
||||||
set(GTEST_LIBRARIES gtest)
|
target_include_directories(gtest
|
||||||
else()
|
PUBLIC
|
||||||
# If the variable GTEST_DIR is defined, we use the existing Googletest
|
${LIBGTEST_DEV_DIR}/googletest/include
|
||||||
set(GTEST_DIR $ENV{GTEST_DIR})
|
${LIBGTEST_DEV_DIR}/googletest
|
||||||
set(GTEST_INCLUDE_DIRECTORIES ${GTEST_DIR}/include ${GTEST_DIR} ${GTEST_DIR}/src)
|
)
|
||||||
add_library(gtest ${GTEST_DIR}/src/gtest-all.cc ${GTEST_DIR}/src/gtest_main.cc)
|
add_library(gtest_main STATIC ${LIBGTEST_DEV_DIR}/googletest/src/gtest_main.cc)
|
||||||
set(GTEST_LIBRARIES gtest)
|
target_include_directories(gtest_main
|
||||||
|
PUBLIC
|
||||||
|
${LIBGTEST_DEV_DIR}/googletest/include
|
||||||
|
)
|
||||||
|
if(NOT TARGET GTest::GTest)
|
||||||
|
add_library(GTest::GTest STATIC IMPORTED)
|
||||||
|
add_dependencies(GTest::GTest gtest)
|
||||||
|
set_target_properties(GTest::GTest PROPERTIES
|
||||||
|
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
||||||
|
INTERFACE_INCLUDE_DIRECTORIES "${LIBGTEST_DEV_DIR}/googletest/include"
|
||||||
|
INTERFACE_LINK_LIBRARIES "${CMAKE_CURRENT_BINARY_DIR}/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||||
|
IMPORTED_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||||
|
)
|
||||||
|
set_target_properties(GTest::GTest PROPERTIES
|
||||||
|
INTERFACE_LINK_LIBRARIES Threads::Threads
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
if(NOT TARGET GTest::Main)
|
||||||
|
add_library(GTest::Main STATIC IMPORTED)
|
||||||
|
add_dependencies(GTest::Main gtest_main)
|
||||||
|
set_target_properties(GTest::Main PROPERTIES
|
||||||
|
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
||||||
|
INTERFACE_INCLUDE_DIRECTORIES "${LIBGTEST_DEV_DIR}/googletest/include"
|
||||||
|
INTERFACE_LINK_LIBRARIES "${CMAKE_CURRENT_BINARY_DIR}/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest_main${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||||
|
IMPORTED_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest_main${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(gtest PUBLIC Threads::Threads)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
@ -312,7 +347,6 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(LIST_INCLUDE_DIRS
|
set(LIST_INCLUDE_DIRS
|
||||||
${GTEST_INCLUDE_DIRECTORIES}
|
|
||||||
${CMAKE_SOURCE_DIR}/src/tests/common-files
|
${CMAKE_SOURCE_DIR}/src/tests/common-files
|
||||||
${GNSS_SDR_TEST_OPTIONAL_HEADERS}
|
${GNSS_SDR_TEST_OPTIONAL_HEADERS}
|
||||||
)
|
)
|
||||||
@ -331,6 +365,7 @@ if(ENABLE_UNIT_TESTING)
|
|||||||
Boost::chrono
|
Boost::chrono
|
||||||
Boost::filesystem
|
Boost::filesystem
|
||||||
Boost::system
|
Boost::system
|
||||||
|
Boost::thread
|
||||||
Armadillo::armadillo
|
Armadillo::armadillo
|
||||||
Gflags::gflags
|
Gflags::gflags
|
||||||
Glog::glog
|
Glog::glog
|
||||||
@ -341,7 +376,7 @@ if(ENABLE_UNIT_TESTING)
|
|||||||
Matio::matio
|
Matio::matio
|
||||||
Volk::volk
|
Volk::volk
|
||||||
Volkgnsssdr::volkgnsssdr
|
Volkgnsssdr::volkgnsssdr
|
||||||
${GTEST_LIBRARIES}
|
GTest::GTest GTest::Main
|
||||||
gnss_sp_libs
|
gnss_sp_libs
|
||||||
gnss_rx
|
gnss_rx
|
||||||
gnss_system_parameters
|
gnss_system_parameters
|
||||||
@ -362,9 +397,6 @@ if(ENABLE_UNIT_TESTING)
|
|||||||
system_testing_lib
|
system_testing_lib
|
||||||
${GNSS_SDR_TEST_OPTIONAL_LIBS}
|
${GNSS_SDR_TEST_OPTIONAL_LIBS}
|
||||||
)
|
)
|
||||||
if(NOT ${GTEST_DIR_LOCAL})
|
|
||||||
add_dependencies(run_tests gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
|
||||||
endif()
|
|
||||||
if(ENABLE_UNIT_TESTING_EXTRA)
|
if(ENABLE_UNIT_TESTING_EXTRA)
|
||||||
target_link_libraries(run_tests PUBLIC Gpstk::gpstk)
|
target_link_libraries(run_tests PUBLIC Gpstk::gpstk)
|
||||||
endif()
|
endif()
|
||||||
@ -387,10 +419,12 @@ if(ENABLE_FPGA)
|
|||||||
)
|
)
|
||||||
target_link_libraries(gps_l1_ca_dll_pll_tracking_test_fpga
|
target_link_libraries(gps_l1_ca_dll_pll_tracking_test_fpga
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${Boost_LIBRARIES}
|
Boost::filesystem
|
||||||
|
Boost::system
|
||||||
|
Boost::thread
|
||||||
Gflags::gflags
|
Gflags::gflags
|
||||||
Glog::glog
|
Glog::glog
|
||||||
${GTEST_LIBRARIES}
|
GTest::GTest GTest::Main
|
||||||
Gnuradio::runtime
|
Gnuradio::runtime
|
||||||
Gnuradio::blocks
|
Gnuradio::blocks
|
||||||
Armadillo::armadillo
|
Armadillo::armadillo
|
||||||
@ -424,12 +458,6 @@ function(add_system_test executable)
|
|||||||
endif()
|
endif()
|
||||||
add_executable(${executable} ${SYSTEM_TEST_SOURCES})
|
add_executable(${executable} ${SYSTEM_TEST_SOURCES})
|
||||||
|
|
||||||
if(NOT ${GTEST_DIR_LOCAL})
|
|
||||||
add_dependencies(${executable} gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
|
||||||
else()
|
|
||||||
add_dependencies(${executable} gtest)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
target_include_directories(${executable} PUBLIC ${OPT_INCLUDES_} ${CMAKE_SOURCES_DIR}/src/algorithms/libs)
|
target_include_directories(${executable} PUBLIC ${OPT_INCLUDES_} ${CMAKE_SOURCES_DIR}/src/algorithms/libs)
|
||||||
target_link_libraries(${executable} PUBLIC ${OPT_LIBS_} gnss_sp_libs)
|
target_link_libraries(${executable} PUBLIC ${OPT_LIBS_} gnss_sp_libs)
|
||||||
|
|
||||||
@ -459,21 +487,25 @@ if(ENABLE_SYSTEM_TESTING)
|
|||||||
add_definitions(-DHOST_SYSTEM="${HOST_SYSTEM}")
|
add_definitions(-DHOST_SYSTEM="${HOST_SYSTEM}")
|
||||||
|
|
||||||
#### TTFF
|
#### TTFF
|
||||||
set(OPT_LIBS_ ${Boost_LIBRARIES} Threads::Threads Gflags::gflags Glog::glog
|
set(OPT_LIBS_ Boost::filesystem Boost::system Boost::thread Boost::date_time
|
||||||
Gnuradio::runtime ${GTEST_LIBRARIES}
|
Threads::Threads Gflags::gflags Glog::glog
|
||||||
|
Gnuradio::runtime GTest::GTest GTest::Main
|
||||||
Gnuradio::blocks Gnuradio::filter
|
Gnuradio::blocks Gnuradio::filter
|
||||||
Gnuradio::analog gnss_sp_libs
|
Gnuradio::analog gnss_sp_libs
|
||||||
gnss_rx gnss_system_parameters)
|
gnss_rx gnss_system_parameters
|
||||||
|
)
|
||||||
add_system_test(ttff)
|
add_system_test(ttff)
|
||||||
|
|
||||||
if(ENABLE_SYSTEM_TESTING_EXTRA)
|
if(ENABLE_SYSTEM_TESTING_EXTRA)
|
||||||
#### POSITION_TEST
|
#### POSITION_TEST
|
||||||
set(OPT_LIBS_ ${Boost_LIBRARIES} Threads::Threads Gflags::gflags Glog::glog
|
set(OPT_LIBS_ Boost::filesystem Boost::system Boost::thread
|
||||||
${GTEST_LIBRARIES} Gnuradio::runtime
|
Threads::Threads Gflags::gflags Glog::glog
|
||||||
|
GTest::GTest GTest::Main Gnuradio::runtime
|
||||||
Gnuradio::blocks Gnuradio::filter
|
Gnuradio::blocks Gnuradio::filter
|
||||||
Gnuradio::analog Matio::matio Volkgnsssdr::volkgnsssdr
|
Gnuradio::analog Matio::matio Volkgnsssdr::volkgnsssdr
|
||||||
gnss_sp_libs gnss_rx gnss_system_parameters
|
gnss_sp_libs gnss_rx gnss_system_parameters
|
||||||
system_testing_lib signal_processing_testing_lib)
|
system_testing_lib signal_processing_testing_lib
|
||||||
|
)
|
||||||
add_system_test(position_test)
|
add_system_test(position_test)
|
||||||
else()
|
else()
|
||||||
# Avoid working with old executables if they were switched ON and then OFF
|
# Avoid working with old executables if they were switched ON and then OFF
|
||||||
@ -501,11 +533,14 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
|
|||||||
add_executable(flowgraph_test ${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc
|
add_executable(flowgraph_test ${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/control-plane/gnss_flowgraph_test.cc)
|
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/control-plane/gnss_flowgraph_test.cc)
|
||||||
|
|
||||||
target_link_libraries(flowgraph_test PUBLIC ${Boost_LIBRARIES}
|
target_link_libraries(flowgraph_test PUBLIC
|
||||||
|
Boost::filesystem
|
||||||
|
Boost::system
|
||||||
|
Boost::thread
|
||||||
Gflags::gflags
|
Gflags::gflags
|
||||||
Glog::glog
|
Glog::glog
|
||||||
Gnuradio::runtime
|
Gnuradio::runtime
|
||||||
${GTEST_LIBRARIES}
|
GTest::GTest GTest::Main
|
||||||
gnss_sp_libs
|
gnss_sp_libs
|
||||||
gnss_rx
|
gnss_rx
|
||||||
gnss_system_parameters
|
gnss_system_parameters
|
||||||
@ -519,11 +554,7 @@ target_link_libraries(flowgraph_test PUBLIC ${Boost_LIBRARIES}
|
|||||||
target_include_directories(flowgraph_test PUBLIC ${CMAKE_SOURCE_DIR}/src/algorithms/libs)
|
target_include_directories(flowgraph_test PUBLIC ${CMAKE_SOURCE_DIR}/src/algorithms/libs)
|
||||||
|
|
||||||
add_test(flowgraph_test flowgraph_test)
|
add_test(flowgraph_test flowgraph_test)
|
||||||
if(NOT ${GTEST_DIR_LOCAL})
|
|
||||||
add_dependencies(flowgraph_test gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
|
||||||
else()
|
|
||||||
add_dependencies(flowgraph_test gtest)
|
|
||||||
endif()
|
|
||||||
set_property(TEST flowgraph_test PROPERTY TIMEOUT 30)
|
set_property(TEST flowgraph_test PROPERTY TIMEOUT 30)
|
||||||
|
|
||||||
#########################################################
|
#########################################################
|
||||||
@ -538,10 +569,13 @@ add_executable(gnss_block_test ${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/signal-processing-blocks/adapter/adapter_test.cc
|
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/signal-processing-blocks/adapter/adapter_test.cc
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/control-plane/gnss_block_factory_test.cc
|
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/control-plane/gnss_block_factory_test.cc
|
||||||
)
|
)
|
||||||
target_link_libraries(gnss_block_test PUBLIC ${Boost_LIBRARIES}
|
target_link_libraries(gnss_block_test PUBLIC
|
||||||
|
Boost::filesystem
|
||||||
|
Boost::system
|
||||||
|
Boost::thread
|
||||||
Gflags::gflags
|
Gflags::gflags
|
||||||
Glog::glog
|
Glog::glog
|
||||||
${GTEST_LIBRARIES}
|
GTest::GTest GTest::Main
|
||||||
Gnuradio::runtime
|
Gnuradio::runtime
|
||||||
Gnuradio::blocks
|
Gnuradio::blocks
|
||||||
Gnuradio::filter
|
Gnuradio::filter
|
||||||
@ -555,13 +589,11 @@ target_link_libraries(gnss_block_test PUBLIC ${Boost_LIBRARIES}
|
|||||||
gnss_system_parameters
|
gnss_system_parameters
|
||||||
Volkgnsssdr::volkgnsssdr
|
Volkgnsssdr::volkgnsssdr
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(gnss_block_test PUBLIC ${CMAKE_SOURCE_DIR}/src/algorithms/libs)
|
target_include_directories(gnss_block_test PUBLIC ${CMAKE_SOURCE_DIR}/src/algorithms/libs)
|
||||||
|
|
||||||
add_test(gnss_block_test gnss_block_test)
|
add_test(gnss_block_test gnss_block_test)
|
||||||
if(NOT ${GTEST_DIR_LOCAL})
|
|
||||||
add_dependencies(gnss_block_test gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
|
||||||
else()
|
|
||||||
add_dependencies(gnss_block_test gtest)
|
|
||||||
endif()
|
|
||||||
set_property(TEST gnss_block_test PROPERTY TIMEOUT 60)
|
set_property(TEST gnss_block_test PROPERTY TIMEOUT 60)
|
||||||
|
|
||||||
#########################################################
|
#########################################################
|
||||||
@ -569,10 +601,13 @@ set_property(TEST gnss_block_test PROPERTY TIMEOUT 60)
|
|||||||
add_executable(gnuradio_block_test ${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc
|
add_executable(gnuradio_block_test ${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/signal-processing-blocks/sources/unpack_2bit_samples_test.cc
|
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/signal-processing-blocks/sources/unpack_2bit_samples_test.cc
|
||||||
)
|
)
|
||||||
target_link_libraries(gnuradio_block_test ${Boost_LIBRARIES}
|
target_link_libraries(gnuradio_block_test PUBLIC
|
||||||
|
Boost::filesystem
|
||||||
|
Boost::system
|
||||||
|
Boost::thread
|
||||||
Gflags::gflags
|
Gflags::gflags
|
||||||
Glog::glog
|
Glog::glog
|
||||||
${GTEST_LIBRARIES}
|
GTest::GTest GTest::Main
|
||||||
Gnuradio::runtime
|
Gnuradio::runtime
|
||||||
Gnuradio::blocks
|
Gnuradio::blocks
|
||||||
Gnuradio::filter
|
Gnuradio::filter
|
||||||
@ -583,12 +618,9 @@ target_link_libraries(gnuradio_block_test ${Boost_LIBRARIES}
|
|||||||
signal_source_gr_blocks
|
signal_source_gr_blocks
|
||||||
Volkgnsssdr::volkgnsssdr
|
Volkgnsssdr::volkgnsssdr
|
||||||
)
|
)
|
||||||
|
|
||||||
add_test(gnuradio_block_test gnuradio_block_test)
|
add_test(gnuradio_block_test gnuradio_block_test)
|
||||||
if(NOT ${GTEST_DIR_LOCAL})
|
|
||||||
add_dependencies(gnuradio_block_test gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
|
||||||
else()
|
|
||||||
add_dependencies(gnuradio_block_test gtest)
|
|
||||||
endif()
|
|
||||||
set_property(TEST gnuradio_block_test PROPERTY TIMEOUT 30)
|
set_property(TEST gnuradio_block_test PROPERTY TIMEOUT 30)
|
||||||
|
|
||||||
#########################################################
|
#########################################################
|
||||||
@ -601,7 +633,7 @@ target_link_libraries(matio_test
|
|||||||
Gflags::gflags
|
Gflags::gflags
|
||||||
Glog::glog
|
Glog::glog
|
||||||
gnss_rx
|
gnss_rx
|
||||||
${GTEST_LIBRARIES}
|
GTest::GTest GTest::Main
|
||||||
gnss_system_parameters
|
gnss_system_parameters
|
||||||
Matio::matio
|
Matio::matio
|
||||||
)
|
)
|
||||||
@ -617,10 +649,12 @@ add_executable(acq_test
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/signal-processing-blocks/acquisition/gps_l1_ca_pcps_acquisition_test.cc)
|
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/signal-processing-blocks/acquisition/gps_l1_ca_pcps_acquisition_test.cc)
|
||||||
target_link_libraries(acq_test
|
target_link_libraries(acq_test
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${Boost_LIBRARIES}
|
Boost::filesystem
|
||||||
|
Boost::system
|
||||||
|
Boost::thread
|
||||||
Gflags::gflags
|
Gflags::gflags
|
||||||
Glog::glog
|
Glog::glog
|
||||||
${GTEST_LIBRARIES}
|
GTest::GTest GTest::Main
|
||||||
Gnuradio::runtime
|
Gnuradio::runtime
|
||||||
Gnuradio::blocks
|
Gnuradio::blocks
|
||||||
Gnuradio::filter
|
Gnuradio::filter
|
||||||
@ -635,11 +669,7 @@ target_link_libraries(acq_test
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_test(acq_test acq_test)
|
add_test(acq_test acq_test)
|
||||||
if(NOT ${GTEST_DIR_LOCAL})
|
|
||||||
add_dependencies(acq_test acq_test gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
|
||||||
else()
|
|
||||||
add_dependencies(acq_test acq_test gtest)
|
|
||||||
endif()
|
|
||||||
set_property(TEST acq_test PROPERTY TIMEOUT 30)
|
set_property(TEST acq_test PROPERTY TIMEOUT 30)
|
||||||
|
|
||||||
#########################################################
|
#########################################################
|
||||||
@ -653,10 +683,12 @@ add_executable(trk_test ${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc
|
|||||||
|
|
||||||
target_link_libraries(trk_test
|
target_link_libraries(trk_test
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${Boost_LIBRARIES}
|
Boost::filesystem
|
||||||
|
Boost::system
|
||||||
|
Boost::thread
|
||||||
Gflags::gflags
|
Gflags::gflags
|
||||||
Glog::glog
|
Glog::glog
|
||||||
${GTEST_LIBRARIES}
|
GTest::GTest GTest::Main
|
||||||
Gnuradio::runtime
|
Gnuradio::runtime
|
||||||
Gnuradio::blocks
|
Gnuradio::blocks
|
||||||
Gnuradio::filter
|
Gnuradio::filter
|
||||||
@ -669,11 +701,7 @@ target_link_libraries(trk_test
|
|||||||
Volkgnsssdr::volkgnsssdr
|
Volkgnsssdr::volkgnsssdr
|
||||||
)
|
)
|
||||||
add_test(trk_test trk_test)
|
add_test(trk_test trk_test)
|
||||||
if(NOT ${GTEST_DIR_LOCAL})
|
|
||||||
add_dependencies(trk_test gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
|
||||||
else()
|
|
||||||
add_dependencies(trk_test gtest)
|
|
||||||
endif()
|
|
||||||
set_property(TEST trk_test PROPERTY TIMEOUT 30)
|
set_property(TEST trk_test PROPERTY TIMEOUT 30)
|
||||||
|
|
||||||
|
|
||||||
@ -685,21 +713,20 @@ if(NOT ENABLE_PACKAGING)
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/control-plane/control_thread_test.cc
|
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/control-plane/control_thread_test.cc
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(control_thread_test ${Boost_LIBRARIES}
|
target_link_libraries(control_thread_test PUBLIC
|
||||||
|
Boost::filesystem
|
||||||
|
Boost::system
|
||||||
|
Boost::thread
|
||||||
Gflags::gflags
|
Gflags::gflags
|
||||||
Glog::glog
|
Glog::glog
|
||||||
signal_source_adapters
|
signal_source_adapters
|
||||||
gnss_sp_libs
|
gnss_sp_libs
|
||||||
${GTEST_LIBRARIES}
|
GTest::GTest GTest::Main
|
||||||
gnss_rx
|
gnss_rx
|
||||||
)
|
)
|
||||||
|
|
||||||
add_test(control_thread_test control_thread_test)
|
add_test(control_thread_test control_thread_test)
|
||||||
if(NOT ${GTEST_DIR_LOCAL})
|
|
||||||
add_dependencies(control_thread_test gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
|
||||||
else()
|
|
||||||
add_dependencies(control_thread_test gtest)
|
|
||||||
endif()
|
|
||||||
set_property(TEST control_thread_test PROPERTY TIMEOUT 30)
|
set_property(TEST control_thread_test PROPERTY TIMEOUT 30)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user