5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
58 lines
1.6 KiB
Diff
58 lines
1.6 KiB
Diff
diff --git a/cmake/package_version.cmake b/cmake/package_version.cmake
|
|
new file mode 100644
|
|
index 0000000..d4fdb9c
|
|
--- /dev/null
|
|
+++ b/cmake/package_version.cmake
|
|
@@ -0,0 +1,12 @@
|
|
+# autogenerated code, do not modify
|
|
+
|
|
+set(PRJ_GIT_REV "v@versionFull@")
|
|
+set(PRJ_GIT_DESC "v@versionFull@")
|
|
+set(PRJ_GIT_BRANCH "HEAD")
|
|
+set(PRJ_GIT_ID "v@versionFull@")
|
|
+set(PRJ_GIT_RELEASE_TAG "v@versionFull@")
|
|
+set(PRJ_VERSION_FULL "@versionFull@")
|
|
+set(PRJ_VERSION_SHORT "@versionFull@")
|
|
+set(PRJ_VERSION_MAJOR "@versionMajor@")
|
|
+set(PRJ_VERSION_MINOR "@versionMinor@")
|
|
+set(PRJ_VERSION_PATCH "@versionPatch@")
|
|
diff --git a/include/dwarfs/version.h b/include/dwarfs/version.h
|
|
new file mode 100644
|
|
index 0000000..54cf86a
|
|
--- /dev/null
|
|
+++ b/include/dwarfs/version.h
|
|
@@ -0,0 +1,16 @@
|
|
+// autogenerated code, do not modify
|
|
+
|
|
+#pragma once
|
|
+
|
|
+#define PRJ_VERSION_MAJOR @versionMajor@
|
|
+#define PRJ_VERSION_MINOR @versionMinor@
|
|
+#define PRJ_VERSION_PATCH @versionPatch@
|
|
+
|
|
+namespace dwarfs {
|
|
+
|
|
+extern char const* PRJ_GIT_REV;
|
|
+extern char const* PRJ_GIT_DESC;
|
|
+extern char const* PRJ_GIT_BRANCH;
|
|
+extern char const* PRJ_GIT_ID;
|
|
+
|
|
+} // namespace dwarfs
|
|
diff --git a/src/dwarfs/version.cpp b/src/dwarfs/version.cpp
|
|
new file mode 100644
|
|
index 0000000..5759120
|
|
--- /dev/null
|
|
+++ b/src/dwarfs/version.cpp
|
|
@@ -0,0 +1,12 @@
|
|
+// autogenerated code, do not modify
|
|
+
|
|
+#include "dwarfs/version.h"
|
|
+
|
|
+namespace dwarfs {
|
|
+
|
|
+char const* PRJ_GIT_REV = "@versionFull@";
|
|
+char const* PRJ_GIT_DESC = "v@versionFull@";
|
|
+char const* PRJ_GIT_BRANCH = "HEAD";
|
|
+char const* PRJ_GIT_ID = "v@versionFull@";
|
|
+
|
|
+} // namespace dwarfs
|