oops forgot version.h.in, thanks Tomas
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 16 Nov 2017 10:38:12 +0000 (10:38 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 16 Nov 2017 10:38:12 +0000 (10:38 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3381 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/cmake/version.h.in [new file with mode: 0644]

diff --git a/codec2-dev/cmake/version.h.in b/codec2-dev/cmake/version.h.in
new file mode 100644 (file)
index 0000000..45b26aa
--- /dev/null
@@ -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