From 5e5b51434d2ff233d93598b76345a4fe7be90bb0 Mon Sep 17 00:00:00 2001 From: Jeremie Deray <jeremie.deray@pal-robotics.com> Date: Wed, 26 Oct 2016 17:41:22 +0200 Subject: [PATCH] some test were missing cmake balise --- src/examples/CMakeLists.txt | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/examples/CMakeLists.txt b/src/examples/CMakeLists.txt index 7de8d464b..1675b5ca7 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) -- GitLab