mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-27 01:14:51 +00:00
Add BLAS::BLAS AND LAPACK::LAPACK imported targets
This commit is contained in:
parent
ee84f60fb4
commit
d40c225ade
@ -1512,8 +1512,13 @@ if(NOT BLAS_FOUND)
|
|||||||
endif()
|
endif()
|
||||||
message(FATAL_ERROR "BLAS is required to build gnss-sdr")
|
message(FATAL_ERROR "BLAS is required to build gnss-sdr")
|
||||||
endif()
|
endif()
|
||||||
|
if(NOT TARGET BLAS::BLAS)
|
||||||
|
add_library(BLAS::BLAS SHARED IMPORTED)
|
||||||
|
set_target_properties(BLAS::BLAS PROPERTIES
|
||||||
|
IMPORTED_LOCATION ${BLAS_LIBRARIES}
|
||||||
|
INTERFACE_LINK_LIBRARIES ${BLAS_LIBRARIES}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Check that LAPACK (Linear Algebra PACKage) is found in the system
|
# Check that LAPACK (Linear Algebra PACKage) is found in the system
|
||||||
@ -1540,7 +1545,13 @@ if(NOT LAPACK_FOUND)
|
|||||||
endif()
|
endif()
|
||||||
message(FATAL_ERROR "LAPACK is required to build gnss-sdr")
|
message(FATAL_ERROR "LAPACK is required to build gnss-sdr")
|
||||||
endif()
|
endif()
|
||||||
|
if(NOT TARGET LAPACK::LAPACK)
|
||||||
|
add_library(LAPACK::LAPACK SHARED IMPORTED)
|
||||||
|
set_target_properties(BLAS::BLAS PROPERTIES
|
||||||
|
IMPORTED_LOCATION ${LAPACK_LIBRARIES}
|
||||||
|
INTERFACE_LINK_LIBRARIES ${LAPACK_LIBRARIES}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -73,8 +73,8 @@ target_link_libraries(algorithms_libs_rtklib
|
|||||||
core_system_parameters
|
core_system_parameters
|
||||||
Gflags::gflags
|
Gflags::gflags
|
||||||
Glog::glog
|
Glog::glog
|
||||||
${LAPACK_LIBRARIES}
|
LAPACK::LAPACK
|
||||||
${BLAS_LIBRARIES}
|
BLAS::BLAS
|
||||||
)
|
)
|
||||||
|
|
||||||
set_property(TARGET algorithms_libs_rtklib
|
set_property(TARGET algorithms_libs_rtklib
|
||||||
|
Loading…
Reference in New Issue
Block a user