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
2f2a85249a
@ -25,9 +25,9 @@ target_link_libraries(gnss-sdr
|
|||||||
Boost::system
|
Boost::system
|
||||||
Gflags::gflags
|
Gflags::gflags
|
||||||
Glog::glog
|
Glog::glog
|
||||||
|
Threads::Threads
|
||||||
gnss_rx
|
gnss_rx
|
||||||
gnss_sdr_flags
|
gnss_sdr_flags
|
||||||
Threads::Threads
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Disable internal logging
|
# Disable internal logging
|
||||||
|
@ -85,6 +85,7 @@ if(NOT ${GTEST_DIR_LOCAL})
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT TARGET GTest::GTest)
|
if(NOT TARGET GTest::GTest)
|
||||||
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../thirdparty/gtest/gtest-${GNSSSDR_GTEST_LOCAL_VERSION}/googletest/include)
|
||||||
add_library(GTest::GTest STATIC IMPORTED)
|
add_library(GTest::GTest STATIC IMPORTED)
|
||||||
add_dependencies(GTest::GTest gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
add_dependencies(GTest::GTest gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
||||||
set_target_properties(GTest::GTest PROPERTIES
|
set_target_properties(GTest::GTest PROPERTIES
|
||||||
@ -114,20 +115,19 @@ else()
|
|||||||
add_library(gtest STATIC ${LIBGTEST_DEV_DIR}/googletest/src/gtest-all.cc)
|
add_library(gtest STATIC ${LIBGTEST_DEV_DIR}/googletest/src/gtest-all.cc)
|
||||||
target_include_directories(gtest
|
target_include_directories(gtest
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${LIBGTEST_DEV_DIR}/googletest/include
|
${GTEST_INCLUDE_DIRECTORIES}
|
||||||
${LIBGTEST_DEV_DIR}/googletest
|
|
||||||
)
|
)
|
||||||
add_library(gtest_main STATIC ${LIBGTEST_DEV_DIR}/googletest/src/gtest_main.cc)
|
add_library(gtest_main STATIC ${LIBGTEST_DEV_DIR}/googletest/src/gtest_main.cc)
|
||||||
target_include_directories(gtest_main
|
target_include_directories(gtest_main
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${LIBGTEST_DEV_DIR}/googletest/include
|
${GTEST_INCLUDE_DIRECTORIES}
|
||||||
)
|
)
|
||||||
if(NOT TARGET GTest::GTest)
|
if(NOT TARGET GTest::GTest)
|
||||||
add_library(GTest::GTest STATIC IMPORTED)
|
add_library(GTest::GTest STATIC IMPORTED)
|
||||||
add_dependencies(GTest::GTest gtest)
|
add_dependencies(GTest::GTest gtest)
|
||||||
set_target_properties(GTest::GTest PROPERTIES
|
set_target_properties(GTest::GTest PROPERTIES
|
||||||
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
||||||
INTERFACE_INCLUDE_DIRECTORIES "${LIBGTEST_DEV_DIR}/googletest/include"
|
INTERFACE_INCLUDE_DIRECTORIES "${GTEST_INCLUDE_DIRS}"
|
||||||
INTERFACE_LINK_LIBRARIES "${CMAKE_CURRENT_BINARY_DIR}/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
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}"
|
IMPORTED_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||||
)
|
)
|
||||||
@ -140,7 +140,7 @@ else()
|
|||||||
add_dependencies(GTest::Main gtest_main)
|
add_dependencies(GTest::Main gtest_main)
|
||||||
set_target_properties(GTest::Main PROPERTIES
|
set_target_properties(GTest::Main PROPERTIES
|
||||||
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
||||||
INTERFACE_INCLUDE_DIRECTORIES "${LIBGTEST_DEV_DIR}/googletest/include"
|
INTERFACE_INCLUDE_DIRECTORIES "${GTEST_INCLUDE_DIRS}"
|
||||||
INTERFACE_LINK_LIBRARIES "${CMAKE_CURRENT_BINARY_DIR}/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest_main${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
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}"
|
IMPORTED_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/${ADD_DEBUG}${CMAKE_FIND_LIBRARY_PREFIXES}gtest_main${FINAL_D}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user