# 编译命令 ```bash mkdir build cd build cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/Users/yaha/Code/github/opencv/output .. make -j8 make install ``` # 使用方式 ```bash set(OpenCV_DIR "/Users/yaha/Code/github/opencv/lib/cmake/opencv4") find_package(OpenCV REQUIRED) ```