Version modifications.
This commit is contained in:
parent
08d3dcc709
commit
74cc1803c4
@ -1,14 +1,14 @@
|
|||||||
SET(OpenCV_VERSION @OPENCV_VERSION@)
|
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})
|
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
|
set(PACKAGE_VERSION_EXACT False)
|
||||||
if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL ${OpenCV_VERSION_MINOR})
|
set(PACKAGE_VERSION_COMPATIBLE False)
|
||||||
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})
|
if(${PACKAGE_FIND_VERSION} VERSION_EQUAL ${PACKAGE_VERSION})
|
||||||
set(PACKAGE_VERSION_EXACT True) # exact match for patch @OPENCV_VERSION_MAJOR@.@OPENCV_VERSION_MINOR@.@OPENCV_VERSION_PATCH@
|
set(PACKAGE_VERSION_EXACT True)
|
||||||
endif()
|
set(PACKAGE_VERSION_COMPATIBLE True)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(${PACKAGE_FIND_VERSION} VERSION_LESS ${PACKAGE_VERSION})
|
||||||
|
set(PACKAGE_VERSION_COMPATIBLE True)
|
||||||
endif()
|
endif()
|
||||||
|
13
opencv-XXX.pc.cmake.in
Normal file
13
opencv-XXX.pc.cmake.in
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Package Information for pkg-config
|
||||||
|
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir_old=@includedir@/opencv
|
||||||
|
includedir_new=@includedir@
|
||||||
|
|
||||||
|
Name: OpenCV
|
||||||
|
Description: Open Source Computer Vision Library
|
||||||
|
Version: @VERSION@
|
||||||
|
Libs: @OpenCV_LIB_COMPONENTS@
|
||||||
|
Cflags: -I${includedir_old} -I${includedir_new}
|
Loading…
x
Reference in New Issue
Block a user