BASIS  r3148
FindOpenCV.cmake File Reference

Find OpenCV Library (http://sourceforge.net/projects/opencvlibrary/) More...

#include "${OpenCV_DIR}/OpenCVConfig.cmake"
#include "FindPackageHandleStandardArgs.cmake"
+ Include dependency graph for FindOpenCV.cmake:

Go to the source code of this file.

Variables

cmake __CVLIB
cmake CMAKE_FIND_LIBRARY_SUFFIXES
cmake OpenCV_COMPONENTS_REQUIRED
cmake OpenCV_CVLIB_NAME_SUFFIX
cmake OpenCV_DIR
cmake OpenCV_FOUND
cmake OpenCV_INCLUDE_DIRS
cmake OpenCV_LIB_COMPONENTS
cmake OpenCV_LIBRARIES
cmake OpenCV_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES
cmake OpenCV_REQUIRED_COMPONENTS_FOUND
cmake OpenCV_VERSION
cmake SUFFIX

Detailed Description

Find OpenCV Library (http://sourceforge.net/projects/opencvlibrary/)

1. Setup

The following variables are optionally searched for defaults OpenCV_DIR: Base directory of OpenCv tree to use.

2. Variable

The following are set after configuration is done:

  • OpenCV_FOUND
  • OpenCV_LIBS
  • OpenCV_INCLUDE_DIR
  • OpenCV_VERSION (OpenCV_VERSION_MAJOR, OpenCV_VERSION_MINOR, OpenCV_VERSION_PATCH)

The following variables are used to maintain compatibility with other Find<Pkg>.cmake modules, including the FindOpenCV.cmake module of Jan Woetzel (2006/09, www.mip.informatik.uni-kiel.de/~jw):

  • OpenCV_INCLUDE_DIRS
  • OpenCV_LIBRARIES
  • OpenCV_LINK_DIRECTORIES
3. Version

2012/10/22 Andreas Schuh, Find OpenCV 2 also if OpenCVConfig.cmake missing. 2012/02/28 Andreas Schuh, Reimplemented module to work also for OpenCV 1.x. 2010/04/07 Benoit Rat, Correct a bug when OpenCVConfig.cmake is not found. 2010/03/24 Benoit Rat, Add compatibility for when OpenCVConfig.cmake is not found. 2010/03/22 Benoit Rat, Creation of the script.

tested with:

  • OpenCV 2.1: MinGW, MSVC2008
  • OpenCV 2.0: MinGW, MSVC2008, GCC4
4. Licence

LGPL 2.1 : GNU Lesser General Public License Usage Alternatively, this file may be used under the terms of the GNU Lesser

General Public License version 2.1 as published by the Free Software Foundation and appearing in the file LICENSE.LGPL included in the packaging of this file. Please review the following information to ensure the GNU Lesser General Public License version 2.1 requirements will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.

Definition in file FindOpenCV.cmake.


Variable Documentation

cmake __CVLIB

Definition at line 107 of file FindOpenCV.cmake.

Definition at line 261 of file FindOpenCV.cmake.

Definition at line 203 of file FindOpenCV.cmake.

Definition at line 179 of file FindOpenCV.cmake.

cmake OpenCV_DIR

Definition at line 60 of file FindOpenCV.cmake.

cmake OpenCV_FOUND

Definition at line 53 of file FindOpenCV.cmake.

Definition at line 264 of file FindOpenCV.cmake.

Definition at line 185 of file FindOpenCV.cmake.

Definition at line 312 of file FindOpenCV.cmake.

Definition at line 280 of file FindOpenCV.cmake.

Definition at line 158 of file FindOpenCV.cmake.

cmake SUFFIX

Definition at line 165 of file FindOpenCV.cmake.