Ask Your Question

How to enable $module_name/test/ocl/*.cpp for video module

asked 2019-02-25 20:51:24 -0500

Some modules have the folder, module_name/test/ocl/, but these source code under the ocl/ won't be built by default.

I checked the OpenCVModule.cmake, seems only the test/*.cpp would be find as test source code.

How to enable these? Is there any document for detail info? Thanks a lot.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-02-26 01:28:13 -0500

LBerger gravatar image

updated 2019-02-26 01:35:14 -0500

in cmake you must add on the command line (or set checkbox in cmake-gui) -DBUILD_PERF_TESTS:BOOL=ON -DBUILD_TESTS:BOOL=ON and rebuild opencv. In build repo you will be able to find opencv_perf* or opencv_test* executable

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-02-25 20:51:24 -0500

Seen: 28 times

Last updated: Feb 26 '19