<div dir="ltr">I&#39;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&#39;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 &quot;0&quot;</div><div>#define FREEDV_VERSION_MINOR &quot;96&quot;</div><div>
#define FREEDV_VERSION_PATCH &quot;3&quot;</div><div>#define FREEDV_VERSION_SUFFIX &quot;Beta&quot;</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>