Added ElementaryConfigVersion.cmake.in

This commit is contained in:
Ryuan Choi 2013-04-03 14:37:02 +01:00 committed by Tom Hacohen
parent f8bc84d439
commit c4af753c5c
3 changed files with 15 additions and 1 deletions

View File

@ -75,7 +75,9 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = elementary.pc
cmakeconfigdir = $(prefix)/share/cmake/Modules
cmakeconfig_DATA = cmakeconfig/ElementaryConfig.cmake
cmakeconfig_DATA = \
cmakeconfig/ElementaryConfig.cmake \
cmakeconfig/ElementaryConfigVersion.cmake
.PHONY: doc screenshots

View File

@ -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 ()

View File

@ -829,6 +829,7 @@ config/standard/Makefile
config/mobile/Makefile
$po_makefile_in
cmakeconfig/ElementaryConfig.cmake
cmakeconfig/ElementaryConfigVersion.cmake
])
#####################################################################