-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindVOpenCV.cmake
37 lines (26 loc) · 1.2 KB
/
FindVOpenCV.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
# $Id: FindVOPENCV.cmake 21495 2011-05-25 07:52:18Z dr165799 $
include( FindPackageHandleStandardArgs )
include( VistaFindUtils )
if( NOT VOPENCV_FOUND )
# search config file
vista_find_package_root( OpenCV OpenCVConfig.cmake NAMES OpenCV opencv share/OpenCV share/opencv ADVANCED )
if( NOT OPENCV_ROOT_DIR )
vista_find_package_root( OpenCV share/OpenCVConfig.cmake NAMES OpenCV opencv share/OpenCV share/opencv ADVANCED )
endif()
if( NOT OPENCV_ROOT_DIR )
vista_find_package_root( OpenCV share/OpenCV/OpenCVConfig.cmake NAMES OpenCV opencv share/OpenCV share/opencv ADVANCED )
endif()
set( OPENCV_FOUND )
set( OpenCV_FOUND )
set( CMAKE_PREFIX_PATH "${OPENCV_ROOT_DIR}" ${CMAKE_PREFIX_PATH} )
vista_find_original_package( VOpenCV )
# an OpenCVConfig.cmake has been found and loaded
unset ( OPENCV_FOUND CACHE )
if( OpenCV_FOUND )
set( OPENCV_LIBRARIES "${OpenCV_LIBS}" )
set( OPENCV_LIBRARY_DIRS "${OpenCV_LIB_DIR}" "${OpenCV_LIB_DIR}/../bin" )
set( OPENCV_INCLUDE_DIRS "${OpenCV_INCLUDE_DIRS}" )
set( OPENCV_VERSION "${OpenCV_VERSION}" )
endif()
endif( NOT VOPENCV_FOUND )
find_package_handle_standard_args( VOpenCV "OpenCV could not be found" OPENCV_LIBRARIES )