opencv/README.md
2023-03-05 23:53:04 +08:00

19 lines
298 B
Markdown

# 编译命令
```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)
```