diff options
author | Nick Wellnhofer <[email protected]> | 2015-01-23 21:26:49 +0100 |
---|---|---|
committer | Nick Wellnhofer <[email protected]> | 2015-01-23 21:26:49 +0100 |
commit | 3ed64d7568437e81a0746554af273faeaf2037b4 (patch) | |
tree | be35e33a616a8f0bd117045aa960ed9077f7bd38 /src/cmark_version.h.in | |
parent | 3248801a925449644071671dcd85e370303071b4 (diff) |
Let cmake update version
Add a new template cmark_version.h.in to generate cmark_version.h
containing version information.
Diffstat (limited to 'src/cmark_version.h.in')
-rw-r--r-- | src/cmark_version.h.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmark_version.h.in b/src/cmark_version.h.in new file mode 100644 index 0000000..41de3ac --- /dev/null +++ b/src/cmark_version.h.in @@ -0,0 +1,7 @@ +#ifndef CMARK_VERSION_H +#define CMARK_VERSION_H + +#define CMARK_VERSION ((@PROJECT_VERSION_MAJOR@ << 16) | (@PROJECT_VERSION_MINOR@ << 8) | @PROJECT_VERSION_PATCH@) +#define CMARK_VERSION_STRING "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@" + +#endif |