-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopencv.cmake
38 lines (37 loc) · 1.28 KB
/
opencv.cmake
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
# (with opencv-2.2 ) FIND_PACKAGE( OpenCV REQUIRED )
# export OpenCV_DIR=/usr/share/OpenCV-2.3.1
#FIND_PACKAGE( OpenCV REQUIRED )
#FIND_PACKAGE( OpenCV REQUIRED)
#SET( OPENCV_LIBRARIES ${OpenCV_LIBS})
#SET( OPENCV_INCLUDE_PATH ${OpenCV_INCLUDE_DIRS})
#
#include(LibFindMacros.cmake) # additional macros needed to read the pkconfig stuff into cmake
#libfind_pkg_check_modules(OpenCV_PKGCONF opencv)
#SET( OPENCV_LIBRARIES ${OpenCV_LIBRARIES})
#
# Include dir
#find_path(OpenCV_INCLUDE_DIRS
# NAMES opencv.h
# PATHS ${OpenCV_PKGCONF_INCLUDE_DIRS}
#)
#
# Finally the library itself
#find_library(OpenCV_LIBRARY
# PATHS ${OpenCV_PKGCONF_LIBRARY_DIRS}
#)
#
#SET( OPENCV_LIBRARIES ${OpenCV_LIBS})
#SET( OPENCV_INCLUDE_PATH ${OpenCV_INCLUDE_DIRS})
#
#MESSAGE( STATUS "OPENCV_LIBRARIES_DIRS: ${OpenCV_PKGCONF_LIBRARY_DIRS}")
#MESSAGE( STATUS "OPENCV_INCLUDE_PATH: ${OPENCV_INCLUDE_PATH}")
#MESSAGE( STATUS "OPENCV_LIBRARIES : ${OPENCV_LIBRARIES}")
#
#
#LINK_DIRECTORIES(${OpenCV_PKGCONF_LIBRARY_DIRS})
#include_directories(${OPENCV_INCLUDE_PATH})
find_package( OpenCV REQUIRED )
SET( OPENCV_LIBRARIES ${OpenCV_LIBS} ${OpenCV_LIBRARIES})
SET( OPENCV_INCLUDE_PATH ${OpenCV_INCLUDE_DIRS})
MESSAGE( STATUS "OPENCV_INCLUDE_PATH: ${OPENCV_INCLUDE_PATH}")
MESSAGE( STATUS "OPENCV_LIBRARIES : ${OPENCV_LIBRARIES}")