android: fixed g2o seg fault (CACHE_SE3_OFFSET not registered)

This commit is contained in:
matlabbe
2022-01-02 23:30:55 -05:00
parent f3ace6c86a
commit b2f13c2772
6 changed files with 110 additions and 36 deletions

View File

@@ -376,15 +376,25 @@ IF(G2O_FOUND)
SET(LIBRARIES
${LIBRARIES}
g2o::core
g2o::solver_cholmod
g2o::solver_eigen
g2o::solver_pcg
g2o::solver_csparse
g2o::csparse_extension
g2o::types_slam2d
g2o::types_slam3d
g2o::types_sba
)
IF(TARGET g2o::solver_csparse)
SET(LIBRARIES
${LIBRARIES}
g2o::solver_csparse
g2o::csparse_extension
)
ENDIF(TARGET g2o::solver_csparse)
IF(TARGET g2o::solver_cholmod)
SET(LIBRARIES
${LIBRARIES}
g2o::solver_cholmod
)
ENDIF(TARGET g2o::solver_csparse)
ELSE()
SET(INCLUDE_DIRS
${INCLUDE_DIRS}