From d22606dc078bbd618d2563a552a62cd4f46ac682 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 10 Jan 2018 16:06:18 +0100 Subject: include: Add version header This moves the version definition for Ouroboros into its own header file, which is generated by CMake and installed on the system. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- include/ouroboros/version.h.in | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 include/ouroboros/version.h.in (limited to 'include/ouroboros/version.h.in') diff --git a/include/ouroboros/version.h.in b/include/ouroboros/version.h.in new file mode 100644 index 00000000..28c4bd92 --- /dev/null +++ b/include/ouroboros/version.h.in @@ -0,0 +1,30 @@ +/* + * Ouroboros - Copyright (C) 2016 - 2017 + * + * Ouroboros version + * + * Dimitri Staessens + * Sander Vrijders + * + * This library 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 library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., http://www.fsf.org/about/contact/. + */ + +#ifndef OUROBOROS_VERSION_H +#define OUROBOROS_VERSION_H + +#define OUROBOROS_VERSION_MAJOR @PACKAGE_VERSION_MAJOR@ +#define OUROBOROS_VERSION_MINOR @PACKAGE_VERSION_MINOR@ +#define OUROBOROS_VERSION_PATCH @PACKAGE_VERSION_PATCH@ + +#endif /* OUROBOROS_VERSION_H */ -- cgit v1.2.3