00001 ############################################################################## 00002 # @file BASISConfigVersion.cmake 00003 # @brief Package configuration version file. 00004 # 00005 # @note The BASISConfigVersion.cmake file is automatically 00006 # generated by BASIS from the template file ConfigVersion.cmake.in 00007 # which is part of the BASIS installation. 00008 # 00009 # This file supports the usage of the package by other projects. It is loaded 00010 # by the find_package() CMake command used by other projects to find this 00011 # package in order to verify that the version of the package found is 00012 # compatible with the version requested. 00013 # 00014 # @par Input variables 00015 # <table border="0"> 00016 # <tr> 00017 # @tp @b PACKAGE_FIND_NAME @endtp 00018 # <td>The package name.</td> 00019 # </tr> 00020 # <tr> 00021 # @tp @b <PACKAGE>_FIND_VERSION @endtp 00022 # <td>Full requested version string.</td> 00023 # </tr> 00024 # <tr> 00025 # @tp @b <PACKAGE>_FIND_VERSION_MAJOR @endtp 00026 # <td>Major version if requested, else 0.</td> 00027 # </tr> 00028 # <tr> 00029 # @tp @b <PACKAGE>_FIND_VERSION_MINOR @endtp 00030 # <td>Minor version if requested, else 0.</td> 00031 # </tr> 00032 # <tr> 00033 # @tp @b <PACKAGE>_FIND_VERSION_PATCH @endtp 00034 # <td>Patch version if requested, else 0.</td> 00035 # </tr> 00036 # <tr> 00037 # @tp @b <PACKAGE>_FIND_VERSION_TWEAK @endtp 00038 # <td>Tweak version if requested, else 0.</td> 00039 # </tr> 00040 # <tr> 00041 # @tp @b <PACKAGE>_FIND_VERSION_COUNT @endtp 00042 # <td>Number of version components, 0 to 4.</td> 00043 # </tr> 00044 # </table> 00045 # 00046 # @par Output variables 00047 # <table border="0"> 00048 # <tr> 00049 # @tp @b PACKAGE_VERSION @endtp 00050 # <td>Full provided version string.</td> 00051 # </tr> 00052 # <tr> 00053 # @tp @b PACKAGE_VERSION_EXACT @endtp 00054 # <td>True if version is exact match.</td> 00055 # </tr> 00056 # <tr> 00057 # @tp @b PACKAGE_VERSION_COMPATIBLE @endtp 00058 # <td>True if version is compatible.</td> 00059 # </tr> 00060 # <tr> 00061 # @tp @b PACKAGE_VERSION_UNSUITABLE @endtp 00062 # <td>True if unsuitable as any version.</td> 00063 # </tr> 00064 # </table> 00065 # 00066 # @sa http://www.cmake.org/Wiki/CMake_2.6_Notes 00067 # 00068 # Copyright (c) 2011, 2012 University of Pennsylvania. All rights reserved.<br /> 00069 # See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file. 00070 # 00071 # Contact: SBIA Group <sbia-software at uphs.upenn.edu> 00072 # 00073 # @ingroup BasisConfig 00074 ############################################################################## 00075 00076 # ============================================================================ 00077 # version 00078 # ============================================================================ 00079 00080 ## @brief Version of the found package. 00081 set (PACKAGE_VERSION "1.2.3") 00082 00083 # ============================================================================ 00084 # check compatibility 00085 # ============================================================================ 00086 00087 # Perform compatibility check here using the input CMake variables. 00088 # See example in http://www.cmake.org/Wiki/CMake_2.6_Notes. 00089 00090 ## @brief Whether this package version is compatible with the requested version. 00091 set (PACKAGE_VERSION_COMPATIBLE TRUE) 00092 ## @brief Whether this package version is unsuitable with the requested version. 00093 set (PACKAGE_VERSION_UNSUITABLE FALSE) 00094 00095 ## @brief Whether this package version is the requested version. 00096 if ("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "1") 00097 if ("${PACKAGE_FIND_VERSION_MINOR}" EQUAL "2") 00098 set (PACKAGE_VERSION_EXACT TRUE) 00099 endif () 00100 endif ()