aboutsummaryrefslogtreecommitdiff
path: root/cmake/version.h.in
diff options
context:
space:
mode:
authorMarin Ivanov <[email protected]>2025-07-25 10:17:14 +0300
committerMarin Ivanov <[email protected]>2026-01-18 20:09:26 +0200
commit0168586485e6310c598713c911b1dec5618d61a1 (patch)
tree6aabc2a12ef8fef70683f5389bea00f948015f77 /cmake/version.h.in
Initial commitHEADmaster
* codec2 cut-down version 1.2.0 * Remove codebook and generation of sources * remove c2dec c2enc binaries * prepare for emscripten
Diffstat (limited to 'cmake/version.h.in')
-rw-r--r--cmake/version.h.in37
1 files changed, 37 insertions, 0 deletions
diff --git a/cmake/version.h.in b/cmake/version.h.in
new file mode 100644
index 0000000..45b26aa
--- /dev/null
+++ b/cmake/version.h.in
@@ -0,0 +1,37 @@
+/*---------------------------------------------------------------------------*\
+
+ FILE........: version.h
+ AUTHOR......: Tomas Härdin
+ DATE CREATED: 03 November 2017
+
+ Codec 2 VERSION #defines
+
+\*---------------------------------------------------------------------------*/
+
+/*
+ Copyright (C) 2017 Tomas Härdin
+
+ All rights reserved.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License version 2.1, as
+ published by the Free Software Foundation. This program is
+ distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program; if not, see <http://www.gnu.org/licenses/>.
+*/
+
+//this functions both as an include guard and your typical HAVE macro
+#ifndef CODEC2_HAVE_VERSION
+#define CODEC2_HAVE_VERSION
+
+#define CODEC2_VERSION_MAJOR @CODEC2_VERSION_MAJOR@
+#define CODEC2_VERSION_MINOR @CODEC2_VERSION_MINOR@
+#cmakedefine CODEC2_VERSION_PATCH @CODEC2_VERSION_PATCH@
+#define CODEC2_VERSION "@CODEC2_VERSION@"
+
+#endif //CODEC2_HAVE_VERSION \ No newline at end of file