CMake编译opencv各选项的含义

分类: 机器视觉 |
Table 2: Options which introduce features into the library. All
of these can be eitherONorOFF.
Table 3: Options passed by CMake to the
compiler.
Table 4: ‘Build’ options control exactly what gets created at
compile time. All of these can be either
Table 5: 'Install' options determine what compiled executables
get placed in your binaries area.
示例:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DWITH_TBB=on -DWITH_PNG=on -DWITH_TIFF=on -DWITH_JPEG=on -DWITH_JASPER=on -DBUILD_SHARED_LIBS=off -DCMAKE_INSTALL_PREFIX=/usr/local/opencv ..