Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
c07cd007
Commit
c07cd007
authored
Aug 08, 2014
by
edgarriba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multi class tutorial compilation
parent
e5a91a8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
26 deletions
+28
-26
CMakeLists.txt
samples/cpp/CMakeLists.txt
+6
-2
CMakeLists.txt
...ial_code/calib3d/real_time_pose_estimation/CMakeLists.txt
+22
-24
No files found.
samples/cpp/CMakeLists.txt
View file @
c07cd007
...
...
@@ -99,9 +99,13 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
endif
()
foreach
(
sample_filename
${
cpp_samples
}
)
get_filename_component
(
sample
${
sample_filename
}
NAME_WE
)
OPENCV_DEFINE_CPP_EXAMPLE
(
${
sample
}
${
sample_filename
}
)
if
(
NOT
"
${
sample_filename
}
"
MATCHES
"real_time_pose_estimation/"
)
get_filename_component
(
sample
${
sample_filename
}
NAME_WE
)
OPENCV_DEFINE_CPP_EXAMPLE
(
${
sample
}
${
sample_filename
}
)
endif
()
endforeach
()
include
(
"tutorial_code/calib3d/real_time_pose_estimation/CMakeLists.txt"
)
endif
()
if
(
INSTALL_C_EXAMPLES AND NOT WIN32
)
...
...
samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/CMakeLists.txt
View file @
c07cd007
cmake_minimum_required
(
VERSION 2.8
)
project
(
PNP_DEMO
)
set
(
sample_dir
${
CMAKE_CURRENT_SOURCE_DIR
}
/tutorial_code/calib3d/real_time_pose_estimation/src/
)
find_package
(
OpenCV REQUIRED
)
if
(
HAVE_opencv_nonfree
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/nonfree/include"
)
endif
()
include_directories
(
${
OpenCV_INCLUDE_DIRS
}
set
(
sample_pnplib
${
sample_dir
}
main_registration.cpp
${
sample_dir
}
CsvReader.cpp
${
sample_dir
}
CsvWriter.cpp
${
sample_dir
}
ModelRegistration.cpp
${
sample_dir
}
Mesh.cpp
${
sample_dir
}
Model.cpp
${
sample_dir
}
PnPProblem.cpp
${
sample_dir
}
Utils.cpp
${
sample_dir
}
RobustMatcher.cpp
)
add_library
(
pnp_lib
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_registration src/main_registration.cpp
)
add_executable
(
pnp_verification src/main_verification.cpp
)
add_executable
(
pnp_detection src/main_detection.cpp
)
add_executable
(
pnp_test src/test_pnp.cpp
)
add_executable
(
pnp_registration
${
sample_pnplib
}
)
add_executable
(
pnp_verification
${
sample_pnplib
}
)
add_executable
(
pnp_detection
${
sample_pnplib
}
)
add_executable
(
pnp_test
${
sample_pnplib
}
)
target_link_libraries
(
pnp_registration pnp_lib
${
OpenCV_LIBS
}
)
target_link_libraries
(
pnp_verification pnp_lib
${
OpenCV_LIBS
}
)
target_link_libraries
(
pnp_detection pnp_lib
${
OpenCV_LIBS
}
)
target_link_libraries
(
pnp_test pnp_lib
${
OpenCV_LIBS
}
)
ocv_target_link_libraries
(
pnp_registration
${
OPENCV_LINKER_LIBS
}
${
OPENCV_CPP_SAMPLES_REQUIRED_DEPS
}
)
ocv_target_link_libraries
(
pnp_verification
${
OPENCV_LINKER_LIBS
}
${
OPENCV_CPP_SAMPLES_REQUIRED_DEPS
}
)
ocv_target_link_libraries
(
pnp_detection
${
OPENCV_LINKER_LIBS
}
${
OPENCV_CPP_SAMPLES_REQUIRED_DEPS
}
)
ocv_target_link_libraries
(
pnp_test
${
OPENCV_LINKER_LIBS
}
${
OPENCV_CPP_SAMPLES_REQUIRED_DEPS
}
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment