aboutsummaryrefslogtreecommitdiff
path: root/modules/ECMConfigVersion.cmake.in
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-27 10:18:14 +0200
committerStephen Kelly <steveire@gmail.com>2011-08-27 10:18:14 +0200
commit999be88c8a618e85d9f715a941a3a7429ccce72d (patch)
tree3a6ddab63efef93d8aced4675dbef98c1cf4e663 /modules/ECMConfigVersion.cmake.in
parentdf20f75b02a2bc3c4138a966ccefef4b004f8262 (diff)
downloadextra-cmake-modules-999be88c8a618e85d9f715a941a3a7429ccce72d.tar.gz
extra-cmake-modules-999be88c8a618e85d9f715a941a3a7429ccce72d.tar.bz2
Add some files for Qt based frameworks to use.
Diffstat (limited to 'modules/ECMConfigVersion.cmake.in')
-rw-r--r--modules/ECMConfigVersion.cmake.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/ECMConfigVersion.cmake.in b/modules/ECMConfigVersion.cmake.in
new file mode 100644
index 00000000..aeed4dc0
--- /dev/null
+++ b/modules/ECMConfigVersion.cmake.in
@@ -0,0 +1,11 @@
+
+set(PACKAGE_VERSION @ECM_VERSION_MAJOR@.@ECM_VERSION_MINOR@.@ECM_VERSION_PATCH@)
+
+if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
+else("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
+ if("${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}")
+ set(PACKAGE_VERSION_EXACT TRUE)
+ endif("${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}")
+endif("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")