diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0161f2a1ea40c426e0c809f948321b38a93c4139..62424a3d43bf1696cb2f22054e9c7046d948181c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -68,6 +68,9 @@ ENDIF (Suitesparse_INCLUDE_DIRS) #include directories INCLUDE_DIRECTORIES(.) + +INCLUDE_DIRECTORIES(${EIGEN_INCLUDE_DIRS}) + IF(Ceres_FOUND) INCLUDE_DIRECTORIES(${CERES_INCLUDE_DIRS}) ENDIF(Ceres_FOUND) diff --git a/src/examples/CMakeLists.txt b/src/examples/CMakeLists.txt index f70e214918bc345e096eb00d2947c9f5002e53a6..d17bb77749d66ec92c9dbb9366e5ffa197709b51 100644 --- a/src/examples/CMakeLists.txt +++ b/src/examples/CMakeLists.txt @@ -8,12 +8,17 @@ ADD_EXECUTABLE(test_sh_ptr test_sh_ptr.cpp) -# test_processor_odom_3D -ADD_EXECUTABLE(test_processor_odom_3D test_processor_odom_3D.cpp) -TARGET_LINK_LIBRARIES(test_processor_odom_3D ${PROJECT_NAME}) +IF(Ceres_FOUND) + # test_processor_odom_3D + ADD_EXECUTABLE(test_processor_odom_3D test_processor_odom_3D.cpp) + TARGET_LINK_LIBRARIES(test_processor_odom_3D ${PROJECT_NAME}) + + ADD_EXECUTABLE(test_motion_2d test_motion_2d.cpp) + TARGET_LINK_LIBRARIES(test_motion_2d ${PROJECT_NAME}) +ENDIF(Ceres_FOUND) + + -ADD_EXECUTABLE(test_motion_2d test_motion_2d.cpp) -TARGET_LINK_LIBRARIES(test_motion_2d ${PROJECT_NAME}) # Local parametrizations classes test ADD_EXECUTABLE(test_local_param test_local_param.cpp) @@ -102,9 +107,16 @@ ENDIF(Suitesparse_FOUND) #TARGET_LINK_LIBRARIES(test_analytic_odom_constraint ${PROJECT_NAME}) IF(OpenCV_FOUND) - # Testing many things for the 3D image odometry - ADD_EXECUTABLE(test_image test_image.cpp) - TARGET_LINK_LIBRARIES(test_image ${PROJECT_NAME}) + + IF(Ceres_FOUND) + # Testing many things for the 3D image odometry + ADD_EXECUTABLE(test_image test_image.cpp) + TARGET_LINK_LIBRARIES(test_image ${PROJECT_NAME}) + + # Processor Image Landmark test + ADD_EXECUTABLE(test_processor_image_landmark test_processor_image_landmark.cpp) + TARGET_LINK_LIBRARIES(test_processor_image_landmark ${PROJECT_NAME}) + ENDIF(Ceres_FOUND) # Testing opencv matching and fundamental matrix with ransac ADD_EXECUTABLE(test_opencv test_opencv.cpp) @@ -114,9 +126,7 @@ IF(OpenCV_FOUND) ADD_EXECUTABLE(test_projection_points test_projection_points.cpp) TARGET_LINK_LIBRARIES(test_projection_points ${PROJECT_NAME}) - # Processor Image Landmark test - ADD_EXECUTABLE(test_processor_image_landmark test_processor_image_landmark.cpp) - TARGET_LINK_LIBRARIES(test_processor_image_landmark ${PROJECT_NAME}) + # Constraint test ADD_EXECUTABLE(test_constraint_AHP test_constraint_AHP.cpp)