Fixed build with g2o on Windows

This commit is contained in:
matlabbe
2016-01-14 17:07:01 -05:00
parent 444879ffc6
commit 2d6965aa4b
6 changed files with 44 additions and 24 deletions

View File

@@ -157,6 +157,9 @@ IF(FlyCapture2_FOUND)
ENDIF(FlyCapture2_FOUND)
IF(G2O_FOUND)
IF(G2O_CHOMOLD_FOUND)
ADD_DEFINITIONS("-DWITH_G2O_CHOMOLD")
ENDIF(G2O_CHOMOLD_FOUND)
ADD_DEFINITIONS("-DWITH_G2O")
SET(INCLUDE_DIRS
${INCLUDE_DIRS}
@@ -169,7 +172,6 @@ IF(G2O_FOUND)
SET(SRC_FILES
${SRC_FILES}
vertigo/g2o/edge_se2MaxMixture.cpp
vertigo/g2o/edge_se2Switchable.cpp
vertigo/g2o/edge_se3Switchable.cpp
vertigo/g2o/edge_switchPrior.cpp