1 # ============================================================================ 2 # Copyright (c) 2015 <provider-name> 5 # See COPYING file for license information. 6 # ============================================================================ 8 ############################################################################## 9 # @file grlConfigVersion.cmake 10 # @brief Package configuration version file. 12 # @note The grlConfigVersion.cmake file is automatically 13 # generated by BASIS from the template file ConfigVersion.cmake.in 14 # which is part of the grl package. 16 # This file supports the usage of the package by other projects. It is loaded 17 # by the find_package() CMake command used by other projects to find this 18 # package in order to verify that the version of the package found is 19 # compatible with the version requested. 21 # @par Input variables 24 # @tp @b PACKAGE_FIND_NAME @endtp 25 # <td>The package name.</td> 28 # @tp @b <PACKAGE>_FIND_VERSION @endtp 29 # <td>Full requested version string.</td> 32 # @tp @b <PACKAGE>_FIND_VERSION_MAJOR @endtp 33 # <td>Major version if requested, else 0.</td> 36 # @tp @b <PACKAGE>_FIND_VERSION_MINOR @endtp 37 # <td>Minor version if requested, else 0.</td> 40 # @tp @b <PACKAGE>_FIND_VERSION_PATCH @endtp 41 # <td>Patch version if requested, else 0.</td> 44 # @tp @b <PACKAGE>_FIND_VERSION_TWEAK @endtp 45 # <td>Tweak version if requested, else 0.</td> 48 # @tp @b <PACKAGE>_FIND_VERSION_COUNT @endtp 49 # <td>Number of version components, 0 to 4.</td> 53 # @par Output variables 56 # @tp @b PACKAGE_VERSION @endtp 57 # <td>Full provided version string.</td> 60 # @tp @b PACKAGE_VERSION_EXACT @endtp 61 # <td>True if version is exact match.</td> 64 # @tp @b PACKAGE_VERSION_COMPATIBLE @endtp 65 # <td>True if version is compatible.</td> 68 # @tp @b PACKAGE_VERSION_UNSUITABLE @endtp 69 # <td>True if unsuitable as any version.</td> 73 # @sa http://www.cmake.org/Wiki/CMake_2.6_Notes 75 # @ingroup BasisConfig 76 ############################################################################## 78 # ============================================================================ 80 # ============================================================================ 82 ## @brief Version of the found package. 83 set (PACKAGE_VERSION
"4.0.0")
85 # ============================================================================
87 # ============================================================================
89 # Perform compatibility check here
using the input CMake variables.
90 # See example in http:
92 ## @brief Whether
this package version is compatible with the requested version.
93 set (PACKAGE_VERSION_COMPATIBLE TRUE)
94 ## @brief Whether this package version is unsuitable with the requested version. 95 set (PACKAGE_VERSION_UNSUITABLE FALSE)
97 ## @brief Whether
this package version is the requested version.
98 if (
"${PACKAGE_FIND_VERSION_MAJOR}" EQUAL
"4")
99 if (
"${PACKAGE_FIND_VERSION_MINOR}" EQUAL
"0")
100 set (PACKAGE_VERSION_EXACT TRUE)
or our tests failed to detect it correctly Please use a different C compiler or report this problem to the developers endif() if(UNIX AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") endif(UNIX AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") if(APPLE) set(CMAKE_MACOSX_RPATH ON)() endif() if(OpenCV_FOUND) if(NOT $