mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
6259c9ac6a
side by side installs of OpenCV2.3.0 OpenCV2.3.1 OpenCV2.4.x, etc...
15 lines
822 B
CMake
15 lines
822 B
CMake
SET(OpenCV_VERSION @OPENCV_VERSION@)
|
|
SET(OpenCV_VERSION_MAJOR @OPENCV_VERSION_MAJOR@)
|
|
SET(OpenCV_VERSION_MINOR @OPENCV_VERSION_MINOR@)
|
|
SET(OpenCV_VERSION_PATCH @OPENCV_VERSION_PATCH@)
|
|
set(PACKAGE_VERSION OpenCV_VERSION)
|
|
if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL ${OpenCV_VERSION_MAJOR})
|
|
set(PACKAGE_VERSION_COMPATIBLE True) # compatible with any version @OPENCV_VERSION_MAJOR@.x.x
|
|
if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL ${OpenCV_VERSION_MINOR})
|
|
set(PACKAGE_VERSION_COMPATIBLE True) # compatible with any version @OPENCV_VERSION_MAJOR@.@OPENCV_VERSION_MINOR@.x
|
|
if("${PACKAGE_FIND_VERSION_PATCH}" EQUAL ${OpenCV_VERSION_PATCH})
|
|
set(PACKAGE_VERSION_EXACT True) # exact match for patch @OPENCV_VERSION_MAJOR@.@OPENCV_VERSION_MINOR@.@OPENCV_VERSION_PATCH@
|
|
endif()
|
|
endif()
|
|
endif()
|