1 # ===================================================================================
\r
2 # The OpenCV CMake configuration file
\r
4 # ** File generated automatically, do not modify **
\r
6 # Usage from an external project:
\r
7 # In your CMakeLists.txt, add these lines:
\r
9 # FIND_PACKAGE(OpenCV REQUIRED )
\r
10 # TARGET_LINK_LIBRARIES(MY_TARGET_NAME ${OpenCV_LIBS})
\r
12 # This file will define the following variables:
\r
13 # - OpenCV_LIBS : The list of libraries to links against.
\r
14 # - OpenCV_LIB_DIR : The directory where lib files are. Calling LINK_DIRECTORIES
\r
15 # with this path is NOT needed.
\r
16 # - OpenCV_VERSION : The version of this OpenCV build. Example: "1.2.0"
\r
17 # - OpenCV_VERSION_MAJOR : Major version part of OpenCV_VERSION. Example: "1"
\r
18 # - OpenCV_VERSION_MINOR : Minor version part of OpenCV_VERSION. Example: "2"
\r
19 # - OpenCV_VERSION_PATCH : Patch version part of OpenCV_VERSION. Example: "0"
\r
21 # ===================================================================================
\r
24 # Extract the directory where *this* file has been installed (determined at cmake run-time)
\r
25 # This variable may or may not be used below, depending on the parsing of OpenCVConfig.cmake
\r
26 get_filename_component(THIS_OPENCV_CONFIG_PATH "${CMAKE_CURRENT_LIST_FILE}" PATH)
\r
28 # ======================================================
\r
29 # Include directories to add to the user project:
\r
30 # ======================================================
\r
31 INCLUDE_DIRECTORIES(@CMAKE_INCLUDE_DIRS_CONFIGCMAKE@)
\r
33 # ======================================================
\r
34 # Link directories to add to the user project:
\r
35 # ======================================================
\r
36 LINK_DIRECTORIES("@CMAKE_LIB_DIRS_CONFIGCMAKE@")
\r
37 # Provide the libs directory anyway, it may be needed in some cases.
\r
38 SET(OpenCV_LIB_DIR "@CMAKE_LIB_DIRS_CONFIGCMAKE@")
\r
40 # ====================================================================
\r
41 # Link libraries: e.g. cxcore110.so, cv110.lib / cv110d.lib, etc...
\r
42 # ====================================================================
\r
43 set(OPENCV_LIB_COMPONENTS cxcore cv ml highgui cvaux)
\r
45 foreach(__CVLIB ${OPENCV_LIB_COMPONENTS})
\r
46 # CMake>=2.6 supports the notation "debug XXd optimized XX"
\r
47 if (CMAKE_MAJOR_VERSION GREATER 2 OR CMAKE_MINOR_VERSION GREATER 4)
\r
49 SET(OpenCV_LIBS ${OpenCV_LIBS} debug ${__CVLIB}@OPENCV_DLLVERSION@@OPENCV_DEBUG_POSTFIX@ optimized ${__CVLIB}@OPENCV_DLLVERSION@)
\r
50 else(CMAKE_MAJOR_VERSION GREATER 2 OR CMAKE_MINOR_VERSION GREATER 4)
\r
52 SET(OpenCV_LIBS ${OpenCV_LIBS} ${__CVLIB}@OPENCV_DLLVERSION@)
\r
53 endif(CMAKE_MAJOR_VERSION GREATER 2 OR CMAKE_MINOR_VERSION GREATER 4)
\r
56 # ======================================================
\r
57 # Version variables:
\r
58 # ======================================================
\r
59 SET(OpenCV_VERSION @OPENCV_VERSION@)
\r
60 SET(OpenCV_VERSION_MAJOR @OPENCV_VERSION_MAJOR@)
\r
61 SET(OpenCV_VERSION_MINOR @OPENCV_VERSION_MINOR@)
\r
62 SET(OpenCV_VERSION_PATCH @OPENCV_VERSION_PATCH@)
\r