1. Sergiu Deitsch
  2. opencv-cmake

Overview

HTTPS SSH

FindOpenCV.cmake

Overview

This module allows to locate OpenCV.

Customizable variables

OPENCV_ROOT_DIR
Specifies the OpenCV root directory.
OPENCV_USE_GPU_LIBS
Indicates whether GPU enabled libraries should be located.
OPENCV_USE_STATIC_LIBS
Indicates whether static instead of shared libraries should be located.
OPENCV_COMPILER
The compiler name used to locate the libraries. Setting this variable is useful only if the OpenCV superpack is being used with its default directory layout.

Read-only variables

OPENCV_FOUND
Indicates whether the library has been found.
OPENCV_INCLUDE_DIRS
Points to the OpenCV include directory.
OPENCV_<COMPONENT>_FOUND
Indicates whether the specified <COMPONENT> was found.
OPENCV_LIBRARIES
Specifies the OpenCV libraries that should be passed to target_link_libararies.