File: FindOpenCV.cmake

package info (click to toggle)
igstk 4.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 38,980 kB
  • sloc: cpp: 86,267; xml: 96; makefile: 75; python: 38
file content (67 lines) | stat: -rw-r--r-- 1,635 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# - try to find glut library and include files
#  GLUT_INCLUDE_DIR, where to find GL/glut.h, etc.
#  GLUT_LIBRARIES, the libraries to link against
#  GLUT_FOUND, If false, do not try to use GLUT.
# Also defined, but not for general use are:
#  GLUT_glut_LIBRARY = the full path to the glut library.
#  GLUT_Xmu_LIBRARY  = the full path to the Xmu library.
#  GLUT_Xi_LIBRARY   = the full path to the Xi Library.


    FIND_PATH( OpenCV_INCLUDE_DIR cv.h
      /usr/include
      /usr/include/opencv
      /usr/local/include
      /usr/openwin/share/include
      /usr/openwin/include
      /usr/X11R6/include
      /usr/include/X11
    )

    FIND_LIBRARY( OpenCV_cv_LIBRARY cv
      /usr/lib
      /usr/local/lib
    )

    FIND_LIBRARY( OpenCV_cvaux_LIBRARY cvaux
      /usr/lib
      /usr/local/lib
    )

    FIND_LIBRARY( OpenCV_highgui_LIBRARY highgui
      /usr/lib
      /usr/local/lib
    )


SET( OpenCV_FOUND "NO" )
IF(OpenCV_INCLUDE_DIR)
  IF(OpenCV_cv_LIBRARY)
    SET( OpenCV_LIBRARIES
      ${OpenCV_cv_LIBRARY}
      ${OpenCV_cvaux_LIBRARY}
      ${OpenCV_highgui_LIBRARY}
    )
    SET( OpenCV_FOUND "YES" )

#The following deprecated settings are for backwards compatibility with CMake1.4
    SET (OpenCV_LIBRARY ${OpenCV_LIBRARIES})
    SET (OpenCV_INCLUDE_PATH ${OpenCV_INCLUDE_DIR})

  ENDIF(OpenCV_cv_LIBRARY)
ENDIF(OpenCV_INCLUDE_DIR)

MARK_AS_ADVANCED(
#  OpenCV_INCLUDE_DIR
#  OpenCV_cv_LIBRARY
  OpenCV_cvaux_LIBRARY
  OpenCV_highgui_LIBRARY
)


#MESSAGE(${OpenCV_INCLUDE_DIR})
#MESSAGE(${OpenCV_cv_LIBRARY})
#MESSAGE(${OpenCV_cvaux_LIBRARY})
#MESSAGE(${OpenCV_highgui_LIBRARY})
#MESSAGE(${OpenCV_LIBRARIES})