diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-06-05 10:54:31 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-06-05 10:54:31 +0200 |
commit | 3169331e84d4cc13192403a7f218899b5e98cfba (patch) | |
tree | 304ca917b4fb0ed4c1f6edb17492f82ec4e43d42 /src | |
parent | 0f838aa20384425198b832df3317667201808765 (diff) | |
download | tmwa-3169331e84d4cc13192403a7f218899b5e98cfba.tar.gz tmwa-3169331e84d4cc13192403a7f218899b5e98cfba.tar.bz2 tmwa-3169331e84d4cc13192403a7f218899b5e98cfba.tar.xz tmwa-3169331e84d4cc13192403a7f218899b5e98cfba.zip |
CMake: Generate the install.hpp and version.hpp files
The values of defines in these files should be the same as those set
from version.mk / Makefile.in.
Diffstat (limited to 'src')
-rw-r--r-- | src/conf/install.hpp.in | 29 | ||||
-rw-r--r-- | src/conf/version.hpp.in | 39 |
2 files changed, 68 insertions, 0 deletions
diff --git a/src/conf/install.hpp.in b/src/conf/install.hpp.in new file mode 100644 index 0000000..c44f026 --- /dev/null +++ b/src/conf/install.hpp.in @@ -0,0 +1,29 @@ +#pragma once +// conf/install.hpp - Import configuration variables related to install. +// +// Copyright © 2014 Ben Longbons <b.r.longbons@gmail.com> +// +// This file is part of The Mana World (Athena server) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// 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 General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. + +// just mention "fwd.hpp" to make formatter happy + +#define PACKAGESYSCONFDIR "@PACKAGESYSCONFDIR@"_s +#define PACKAGELOCALSTATEDIR "@PACKAGELOCALSTATEDIR@"_s +#define PACKAGEDATADIR "@PACKAGEDATADIR@"_s + +namespace tmwa +{ +} // namespace tmwa diff --git a/src/conf/version.hpp.in b/src/conf/version.hpp.in new file mode 100644 index 0000000..126fae2 --- /dev/null +++ b/src/conf/version.hpp.in @@ -0,0 +1,39 @@ +#pragma once +// conf/version.hpp - Import configuration variables related to version. +// +// Copyright © 2013-2014 Ben Longbons <b.r.longbons@gmail.com> +// +// This file is part of The Mana World (Athena server) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// 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 General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. + +// just mention "fwd.hpp" to make formatter happy + +#define VERSION_FULL "@VERSION_FULL@"_s +#define VERSION_HASH "@VERSION_HASH@"_s + +#define VERSION_MAJOR @PROJECT_VERSION_MAJOR@ +#define VERSION_MINOR @PROJECT_VERSION_MINOR@ +#define VERSION_PATCH @PROJECT_VERSION_PATCH@ +#define VERSION_DEVEL @PROJECT_VERSION_TWEAK@ + +#define VENDOR_NAME "@VENDOR_NAME@"_s +#define VENDOR_POINT @VENDOR_POINT@ +#define VENDOR_SOURCE "@VENDOR_SOURCE@"_s + +#define VERSION_STRING "@VERSION_STRING@"_s + +namespace tmwa +{ +} // namespace tmwa |