Build samples programs

There’s some great examples in opencv/samples/cpp, but it looks like they don’t get compiled into an executable by default. Is there some setting or simple CMakeLists.txt edit to compile them?

I can copy and paste the code and compile it in a separate project, but it would be convenient to have everything in the opencv folder.


1 Like

Thank you for responding so quickly. Where can you expect those executables to be saved? Should they be in opencv/build/bin? Or perhaps opencv/build/samples/cpp?