From dfa3ccdea98c00f08761b9e4cebd3c8709fad550 Mon Sep 17 00:00:00 2001 From: edgarriba Date: Tue, 5 Aug 2014 13:43:01 +0200 Subject: [PATCH] Update for Boost libraries --- .../calib3d/real_time_pose_estimation/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/CMakeLists.txt b/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/CMakeLists.txt index 6a878a9738..74c7f8a94c 100644 --- a/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/CMakeLists.txt +++ b/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/CMakeLists.txt @@ -1,10 +1,11 @@ cmake_minimum_required(VERSION 2.8) project( PNP_DEMO ) -find_package( OpenCV REQUIRED ) +find_package( Boost OpenCV REQUIRED ) include_directories( $(PNP_DEMO_SOURCE_DIR)/include + ${Boost_INCLUDE_DIR} ${OpenCV_INCLUDE_DIRS} ) @@ -34,5 +35,5 @@ pnp_detection src/RobustMatcher.cpp ) -target_link_libraries( pnp_registration ${OpenCV_LIBS} ) -target_link_libraries( pnp_detection ${OpenCV_LIBS} ) +target_link_libraries( pnp_registration ${Boost_LIBRARIES} ${OpenCV_LIBS} ) +target_link_libraries( pnp_detection ${Boost_LIBRARIES} ${OpenCV_LIBS} )