OpenCVConfig-version.cmake.in 456 B

123456789101112131415
  1. set(OpenCV_VERSION @OPENCV_VERSION_PLAIN@)
  2. set(PACKAGE_VERSION ${OpenCV_VERSION})
  3. set(PACKAGE_VERSION_EXACT False)
  4. set(PACKAGE_VERSION_COMPATIBLE False)
  5. if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
  6. set(PACKAGE_VERSION_EXACT True)
  7. set(PACKAGE_VERSION_COMPATIBLE True)
  8. endif()
  9. if(PACKAGE_FIND_VERSION_MAJOR EQUAL @OPENCV_VERSION_MAJOR@
  10. AND PACKAGE_FIND_VERSION VERSION_LESS PACKAGE_VERSION)
  11. set(PACKAGE_VERSION_COMPATIBLE True)
  12. endif()