at 24.11-pre 58 lines 1.6 kB view raw
1diff --git a/cmake/package_version.cmake b/cmake/package_version.cmake 2new file mode 100644 3index 0000000..d4fdb9c 4--- /dev/null 5+++ b/cmake/package_version.cmake 6@@ -0,0 +1,12 @@ 7+# autogenerated code, do not modify 8+ 9+set(PRJ_GIT_REV "v@versionFull@") 10+set(PRJ_GIT_DESC "v@versionFull@") 11+set(PRJ_GIT_BRANCH "HEAD") 12+set(PRJ_GIT_ID "v@versionFull@") 13+set(PRJ_GIT_RELEASE_TAG "v@versionFull@") 14+set(PRJ_VERSION_FULL "@versionFull@") 15+set(PRJ_VERSION_SHORT "@versionFull@") 16+set(PRJ_VERSION_MAJOR "@versionMajor@") 17+set(PRJ_VERSION_MINOR "@versionMinor@") 18+set(PRJ_VERSION_PATCH "@versionPatch@") 19diff --git a/include/dwarfs/version.h b/include/dwarfs/version.h 20new file mode 100644 21index 0000000..54cf86a 22--- /dev/null 23+++ b/include/dwarfs/version.h 24@@ -0,0 +1,16 @@ 25+// autogenerated code, do not modify 26+ 27+#pragma once 28+ 29+#define PRJ_VERSION_MAJOR @versionMajor@ 30+#define PRJ_VERSION_MINOR @versionMinor@ 31+#define PRJ_VERSION_PATCH @versionPatch@ 32+ 33+namespace dwarfs { 34+ 35+extern char const* PRJ_GIT_REV; 36+extern char const* PRJ_GIT_DESC; 37+extern char const* PRJ_GIT_BRANCH; 38+extern char const* PRJ_GIT_ID; 39+ 40+} // namespace dwarfs 41diff --git a/src/dwarfs/version.cpp b/src/dwarfs/version.cpp 42new file mode 100644 43index 0000000..5759120 44--- /dev/null 45+++ b/src/dwarfs/version.cpp 46@@ -0,0 +1,12 @@ 47+// autogenerated code, do not modify 48+ 49+#include "dwarfs/version.h" 50+ 51+namespace dwarfs { 52+ 53+char const* PRJ_GIT_REV = "@versionFull@"; 54+char const* PRJ_GIT_DESC = "v@versionFull@"; 55+char const* PRJ_GIT_BRANCH = "HEAD"; 56+char const* PRJ_GIT_ID = "v@versionFull@"; 57+ 58+} // namespace dwarfs