mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 09:00:24 +08:00
Compare commits
1 Commits
0.23.7-lyr
...
g2o_latest
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4098f0683a |
@@ -929,10 +929,22 @@ ENDIF()
|
||||
IF(NOT G2O_FOUND)
|
||||
SET(G2O "//")
|
||||
SET(G2O_CPP_CONF "//")
|
||||
SET(G2O_SRC_DIR "//")
|
||||
ELSE()
|
||||
IF(NOT G2O_CPP11)
|
||||
SET(G2O_CPP_CONF "//")
|
||||
ENDIF(NOT G2O_CPP11)
|
||||
IF(NOT G2O_INCLUDE_DIRS)
|
||||
get_target_property(G2O_INCLUDE_DIRS g2o::core INTERFACE_INCLUDE_DIRECTORIES)
|
||||
ENDIF()
|
||||
FIND_FILE(G2O_CONFIG_H g2o/config.h
|
||||
PATHS ${G2O_INCLUDE_DIRS}
|
||||
NO_DEFAULT_PATH)
|
||||
FILE(READ ${G2O_CONFIG_H} TMPTXT)
|
||||
STRING(FIND "${TMPTXT}" "G2O_SRC_DIR" matchres)
|
||||
IF(${matchres} EQUAL -1)
|
||||
SET(G2O_SRC_DIR "//")
|
||||
ENDIF(${matchres} EQUAL -1)
|
||||
ENDIF()
|
||||
IF(NOT GTSAM_FOUND)
|
||||
SET(GTSAM "//")
|
||||
|
||||
@@ -41,6 +41,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@TORO@#define RTABMAP_TORO
|
||||
@G2O@#define RTABMAP_G2O
|
||||
@G2O_CPP_CONF@#define RTABMAP_G2O_CPP11 @G2O_CPP11@
|
||||
// vcpkg removes G2O_SRC_DIR
|
||||
@G2O_SRC_DIR@#ifndef G2O_SRC_DIR
|
||||
@G2O_SRC_DIR@#define G2O_SRC_DIR
|
||||
@G2O_SRC_DIR@#endif
|
||||
@GTSAM@#define RTABMAP_GTSAM
|
||||
@CERES@#define RTABMAP_CERES
|
||||
@MRPT@#define RTABMAP_MRPT
|
||||
|
||||
Reference in New Issue
Block a user