<div dir="ltr">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.<div><br></div><div style>
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.</div>
<div style><br></div><div style>The meaningful entries in version.h are:</div><div style><br></div><div style><div>#define FREEDV_VERISON_MAJOR "0"</div><div>#define FREEDV_VERSION_MINOR "96"</div><div>
#define FREEDV_VERSION_PATCH "3"</div><div>#define FREEDV_VERSION_SUFFIX "Beta"</div><div><br></div><div style>Any hints would be appreciated.</div><div style><br></div><div style>Thanks,</div><div style>
Richard</div></div></div>