mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
Prefer use of CMAKE_SOURCE_DIR
This commit is contained in:
parent
b712c98a5b
commit
ae50ebbaa5
@ -32,14 +32,14 @@ list(SORT GNSS_RECEIVER_HEADERS)
|
|||||||
list(SORT GNSS_RECEIVER_SOURCES)
|
list(SORT GNSS_RECEIVER_SOURCES)
|
||||||
|
|
||||||
set(GNSS_RECEIVER_INTERFACE_HEADERS
|
set(GNSS_RECEIVER_INTERFACE_HEADERS
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../interfaces/acquisition_interface.h
|
${CMAKE_SOURCE_DIR}/src/core/interfaces/acquisition_interface.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../interfaces/channel_interface.h
|
${CMAKE_SOURCE_DIR}/src/core/interfaces/channel_interface.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../interfaces/configuration_interface.h
|
${CMAKE_SOURCE_DIR}/src/core/interfaces/configuration_interface.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../interfaces/gnss_block_interface.h
|
${CMAKE_SOURCE_DIR}/src/core/interfaces/gnss_block_interface.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../interfaces/observables_interface.h
|
${CMAKE_SOURCE_DIR}/src/core/interfaces/observables_interface.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../interfaces/pvt_interface.h
|
${CMAKE_SOURCE_DIR}/src/core/interfaces/pvt_interface.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../interfaces/telemetry_decoder_interface.h
|
${CMAKE_SOURCE_DIR}/src/core/interfaces/telemetry_decoder_interface.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../interfaces/tracking_interface.h
|
${CMAKE_SOURCE_DIR}/src/core/interfaces/tracking_interface.h
|
||||||
)
|
)
|
||||||
|
|
||||||
list(SORT GNSS_RECEIVER_INTERFACE_HEADERS)
|
list(SORT GNSS_RECEIVER_INTERFACE_HEADERS)
|
||||||
|
@ -18,7 +18,7 @@ set(GTEST_COMPILER -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DCMAKE_C_COMPILER
|
|||||||
set(TOOLCHAIN_ARG "")
|
set(TOOLCHAIN_ARG "")
|
||||||
if(DEFINED ENV{OECORE_TARGET_SYSROOT})
|
if(DEFINED ENV{OECORE_TARGET_SYSROOT})
|
||||||
set(GTEST_COMPILER "")
|
set(GTEST_COMPILER "")
|
||||||
set(TOOLCHAIN_ARG "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/Toolchains/oe-sdk_cross.cmake")
|
set(TOOLCHAIN_ARG "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_SOURCE_DIR}/cmake/Toolchains/oe-sdk_cross.cmake")
|
||||||
else()
|
else()
|
||||||
if(CMAKE_TOOLCHAIN_FILE)
|
if(CMAKE_TOOLCHAIN_FILE)
|
||||||
set(TOOLCHAIN_ARG "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")
|
set(TOOLCHAIN_ARG "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")
|
||||||
|
Loading…
Reference in New Issue
Block a user