[CMake] Building a Version Header

John Drescher drescherjm at gmail.com
Wed Jul 7 23:49:57 EDT 2010


On Wed, Jul 7, 2010 at 11:43 PM, Clark Gaebel <cg.wowus.cg at gmail.com> wrote:
> Okay, I've almost got it. How do I make configure_file generate
> something like...
>
> source:
> #cmakedefine VERSION
>

Some thing like

Version.h.in
#define VERSION "@PROJECT_VERSION@"


Try to look at my first example for usage.

John


More information about the CMake mailing list