From 377a0feae2794706463ced644c2873506b8806e7 Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Sun, 12 May 2024 08:29:57 +0200 Subject: Fix version --- cmake/modules/version.cpp.in | 8 ++++---- include/gamp/version.hpp | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 include/gamp/version.hpp diff --git a/cmake/modules/version.cpp.in b/cmake/modules/version.cpp.in index 120cff7..44909f6 100644 --- a/cmake/modules/version.cpp.in +++ b/cmake/modules/version.cpp.in @@ -1,5 +1,5 @@ -#include +#include -const char* jau::VERSION = "@jaulib_VERSION_LONG@"; -const char* jau::VERSION_SHORT = "@jaulib_VERSION_SHORT@"; -const char* jau::VERSION_API = "@jaulib_VERSION_API@"; +const char* gamp::VERSION = "@gamp_VERSION_LONG@"; +const char* gamp::VERSION_SHORT = "@gamp_VERSION_SHORT@"; +const char* gamp::VERSION_API = "@gamp_VERSION_API@"; diff --git a/include/gamp/version.hpp b/include/gamp/version.hpp new file mode 100644 index 0000000..b018e53 --- /dev/null +++ b/include/gamp/version.hpp @@ -0,0 +1,33 @@ +/* + * Author: Sven Gothel + * Copyright (c) 2022 Gothel Software e.K. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ +#ifndef JAU_GAMP_VERSION_HPP_ +#define JAU_GAMP_VERSION_HPP_ + +namespace gamp { + extern const char* VERSION; + extern const char* VERSION_SHORT; + extern const char* VERSION_API; +} /* namespace gamp */ + +#endif /* JAU_GAMP_VERSION_HPP_ */ -- cgit v1.2.3