aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am9
-rw-r--r--cmakeconfig/EFLConfigVersion.cmake.in11
-rw-r--r--configure.ac7
3 files changed, 26 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 2983d1e450..9b2072c207 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -236,12 +236,19 @@ endif
# Cmake configs:
cmakeconfigdir = ${prefix}/share/cmake/Modules/
cmakeconfig_DATA = cmakeconfig/EinaConfig.cmake \
+ cmakeconfig/EinaConfigVersion.cmake \
cmakeconfig/EoConfig.cmake \
+ cmakeconfig/EoConfigVersion.cmake \
cmakeconfig/EetConfig.cmake \
+ cmakeconfig/EetConfigVersion.cmake \
cmakeconfig/EvasConfig.cmake \
+ cmakeconfig/EvasConfigVersion.cmake \
cmakeconfig/EcoreConfig.cmake \
+ cmakeconfig/EcoreConfigVersion.cmake \
cmakeconfig/EdjeConfig.cmake \
- cmakeconfig/EfreetConfig.cmake
+ cmakeconfig/EdjeConfigVersion.cmake \
+ cmakeconfig/EfreetConfig.cmake \
+ cmakeconfig/EfreetConfigVersion.cmake
# D-Bus services:
diff --git a/cmakeconfig/EFLConfigVersion.cmake.in b/cmakeconfig/EFLConfigVersion.cmake.in
new file mode 100644
index 0000000000..f99fba11a4
--- /dev/null
+++ b/cmakeconfig/EFLConfigVersion.cmake.in
@@ -0,0 +1,11 @@
+set(PACKAGE_VERSION "@VERSION@")
+
+# Check whether the requested PACKAGE_FIND_VERSION is compatible
+if ("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
+else ()
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
+ if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_EXACT TRUE)
+ endif ()
+endif ()
diff --git a/configure.ac b/configure.ac
index a5182244d4..b12d5e3438 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3700,12 +3700,19 @@ dbus-services/org.enlightenment.Efreet.service
dbus-services/org.enlightenment.Ethumb.service
$po_makefile_in
cmakeconfig/EinaConfig.cmake
+cmakeconfig/EinaConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EoConfig.cmake
+cmakeconfig/EoConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EetConfig.cmake
+cmakeconfig/EetConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EvasConfig.cmake
+cmakeconfig/EvasConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EcoreConfig.cmake
+cmakeconfig/EcoreConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EdjeConfig.cmake
+cmakeconfig/EdjeConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EfreetConfig.cmake
+cmakeconfig/EfreetConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
])
AC_OUTPUT