如何获取cmake for opencv lib的所有可用选项?

时间:2018-11-15 12:04:01

标签: opencv cmake

在opencv cmake构建脚本中,我看到诸如-DBUILD_opencv_photo-DBUILD_opencv_ml等标记。如何获取这些标记的完整列表?

运行:

cmake -LA | awk '{if(f)print} /-- Cache values/{f=1}' | grep BUILD_opencv

礼物:

BUILD_opencv_apps:BOOL=ON
BUILD_opencv_calib3d:BOOL=ON
BUILD_opencv_core:BOOL=ON
BUILD_opencv_dnn:BOOL=ON
BUILD_opencv_features2d:BOOL=ON
BUILD_opencv_flann:BOOL=ON
BUILD_opencv_gapi:BOOL=ON
BUILD_opencv_highgui:BOOL=ON
BUILD_opencv_imgcodecs:BOOL=ON
BUILD_opencv_imgproc:BOOL=ON
BUILD_opencv_java_bindings_generator:BOOL=ON
BUILD_opencv_js:BOOL=OFF
BUILD_opencv_ml:BOOL=ON
BUILD_opencv_objdetect:BOOL=ON
BUILD_opencv_photo:BOOL=ON
BUILD_opencv_python3:BOOL=ON
BUILD_opencv_python_bindings_generator:BOOL=ON
BUILD_opencv_stitching:BOOL=ON
BUILD_opencv_ts:BOOL=ON
BUILD_opencv_video:BOOL=ON
BUILD_opencv_videoio:BOOL=ON
BUILD_opencv_world:BOOL=OFF

0 个答案:

没有答案