Ask Your Question
0

How to compile OpenCV together with a CMake project?

asked 2019-04-18 23:16:38 -0600

Apparently the add_subdirectory is not enough and I could find no documentation of how I should do it. I'd like to be able to compile OpenCV directly with my project instead of having to compile it separately and install globally into my system.

Thank you in advance.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2019-04-19 02:22:06 -0600

Yashas gravatar image

You may want to use ExternalProject to add OpenCV to your project.

It supports downloading the project from URL, git, etc.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-04-18 23:16:38 -0600

Seen: 458 times

Last updated: Apr 19 '19