mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
Code tutorial
This commit is contained in:
parent
0ac84755a0
commit
7334e54a63
@ -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} )
|
Loading…
Reference in New Issue
Block a user