![cmake install lib cmake install lib](https://www.mongodb.com/community/forums/uploads/default/original/1X/4579306bf575a677d7703410f219711efc8e44b0.png)
CUDA toolkit must be installed from the official NVIDIA site as a prerequisite. Many algorithms have been implemented using CUDA acceleration, these functions are located in separate modules. If BUILD_ option is disabled, 3rdparty library will be detected and enabled if found => HAVE_ set to ON if dependency is found.If BUILD_ option is enabled, 3rdparty library will be built and enabled => HAVE_ set to ON.Options starting with HAVE_ indicate that dependency have been enabled, can be used to manually enable a dependency if automatic detection can not be used.Options starting with BUILD_ enable or disable building and using 3rdparty library bundled with OpenCV.
![cmake install lib cmake install lib](https://solarianprogrammer.com/images/2020/01/26/visual_studio_desktop_development_with_cpp.png)
Options starting with WITH_ enable or disable a dependency.There are three kinds of options used to control dependencies of the library, they have different prefixes: cmake has special option allowing to print all available configuration parameters:Ĭmake -LH. There are many optional dependencies and features that can be turned on or off. | See also GCC instrumentation Build hardening Interprocedural optimization Link time optimization ThinLTO
![cmake install lib cmake install lib](https://perso.uclouvain.be/allan.barrea/opencv/_images/cmake_add_path.png)
| | ENABLE_THIN_LTO | Clang | Enable thin LTO which incorporates intermediate bitcode to binaries allowing consumers optimize their applications later. | | ENABLE_LTO | GCC, Clang, MSVC | Enable Link Time Optimization (LTO).
#CMAKE INSTALL LIB CODE#
| | ENABLE_BUILD_HARDENING | GCC, Clang, MSVC | Enable compiler options which reduce possibility of code exploitation. | | OPENCV_ENABLE_MEMORY_SANITIZER | N/A | Enable several quirks in code to assist memory sanitizer. | | ENABLE_COVERAGE | GCC or Clang | Enable code coverage support. | Option | Compiler | Description | | ENABLE_PROFILING | GCC or Clang | Enable profiling compiler and linker options. opencv Note More details on CPU optimization options can be found in wiki: Profiling, coverage, sanitize, hardening, size optimizationįollowing options can be used to produce special builds with instrumentation or improved security.