mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-07-02 01:52:58 +00:00
Fix build if matio was built on-the-fly
This commit is contained in:
parent
e1396e2532
commit
14d24c3948
@ -59,6 +59,7 @@ include_directories(
|
|||||||
${ARMADILLO_INCLUDE_DIRS}
|
${ARMADILLO_INCLUDE_DIRS}
|
||||||
${GFlags_INCLUDE_DIRS}
|
${GFlags_INCLUDE_DIRS}
|
||||||
${GLOG_INCLUDE_DIRS}
|
${GLOG_INCLUDE_DIRS}
|
||||||
|
${MATIO_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
list(SORT PVT_LIB_HEADERS)
|
list(SORT PVT_LIB_HEADERS)
|
||||||
@ -66,7 +67,12 @@ list(SORT PVT_LIB_SOURCES)
|
|||||||
|
|
||||||
add_library(pvt_lib ${PVT_LIB_SOURCES} ${PVT_LIB_HEADERS})
|
add_library(pvt_lib ${PVT_LIB_SOURCES} ${PVT_LIB_HEADERS})
|
||||||
source_group(Headers FILES ${PVT_LIB_HEADERS})
|
source_group(Headers FILES ${PVT_LIB_HEADERS})
|
||||||
add_dependencies(pvt_lib rtklib_lib armadillo-${armadillo_RELEASE} glog-${glog_RELEASE})
|
|
||||||
|
if(MATIO_FOUND)
|
||||||
|
add_dependencies(pvt_lib glog-${glog_RELEASE} armadillo-${armadillo_RELEASE})
|
||||||
|
else(MATIO_FOUND)
|
||||||
|
add_dependencies(pvt_lib glog-${glog_RELEASE} armadillo-${armadillo_RELEASE} matio-${GNSSSDR_MATIO_LOCAL_VERSION})
|
||||||
|
endif(MATIO_FOUND)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
pvt_lib
|
pvt_lib
|
||||||
@ -77,4 +83,5 @@ target_link_libraries(
|
|||||||
${ARMADILLO_LIBRARIES}
|
${ARMADILLO_LIBRARIES}
|
||||||
${BLAS}
|
${BLAS}
|
||||||
${LAPACK}
|
${LAPACK}
|
||||||
|
${MATIO_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user