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 new file mode 100644 index 0000000000..6a878a9738 --- /dev/null +++ b/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/CMakeLists.txt @@ -0,0 +1,38 @@ +cmake_minimum_required(VERSION 2.8) +project( PNP_DEMO ) + +find_package( OpenCV REQUIRED ) + +include_directories( + $(PNP_DEMO_SOURCE_DIR)/include + ${OpenCV_INCLUDE_DIRS} +) + +add_executable( +pnp_registration + src/main_registration.cpp + src/CsvReader.cpp + src/CsvWriter.cpp + src/ModelRegistration.cpp + src/Mesh.cpp + src/Model.cpp + src/PnPProblem.cpp + src/Utils.cpp + src/RobustMatcher.cpp +) + +add_executable( +pnp_detection + src/main_detection.cpp + src/CsvReader.cpp + src/CsvWriter.cpp + src/ModelRegistration.cpp + src/Mesh.cpp + src/Model.cpp + src/PnPProblem.cpp + src/Utils.cpp + src/RobustMatcher.cpp +) + +target_link_libraries( pnp_registration ${OpenCV_LIBS} ) +target_link_libraries( pnp_detection ${OpenCV_LIBS} )