Cmake编译成静态库
To build OpenCV as static library you need to set BUILD_SHARED_LIBS flag to false/off:cmake -DBUILD_SHARED_LIBS=OFF ..reference:http://stackoverflow.com/questions/7583172/opencv-as-a-static-libr...