[CMake] Pull in project version number from file
Richard Shaw
hobbes1069 at gmail.com
Thu Jun 6 09:39:35 EDT 2013
I'm working on converting a small project from autotools to cmake and one
of the final nit-pick issues is that the version of the software is defined
in a file, version.h as #defines.
I haven't been able to find the magic incantation of file(READ...,
string(REGEX MATCH... to parse the version numbers. I did request that the
version be managed within the cmake config but that was not accepted.
The meaningful entries in version.h are:
#define FREEDV_VERISON_MAJOR "0"
#define FREEDV_VERSION_MINOR "96"
#define FREEDV_VERSION_PATCH "3"
#define FREEDV_VERSION_SUFFIX "Beta"
Any hints would be appreciated.
Thanks,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130606/7f4aeb9b/attachment.htm>
More information about the CMake
mailing list