linux下命令行編譯Opencv代碼和寫CMakeLists.txt來編譯Opencv代碼

1.命令行編譯如下: g++ -o test test.cpp -I /usr/local/include -I /usr/local/include/opencv -I /usr/local/include/opencv2 -L /usr/local/lib /usr/local/lib/*.so    2通過寫.CMakeLists.txt來編譯如下:
相關文章
相關標籤/搜索