From 2a4de0ad0b0b617b56eba731979317a1878dc597 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Thu, 16 Nov 2017 10:38:12 +0000 Subject: [PATCH] oops forgot version.h.in, thanks Tomas git-svn-id: https://svn.code.sf.net/p/freetel/code@3381 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/cmake/version.h.in | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 codec2-dev/cmake/version.h.in diff --git a/codec2-dev/cmake/version.h.in b/codec2-dev/cmake/version.h.in new file mode 100644 index 00000000..45b26aab --- /dev/null +++ b/codec2-dev/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 . +*/ + +//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 -- 2.25.1