summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorManuel Bentele2020-10-23 18:13:15 +0200
committerManuel Bentele2020-10-23 18:13:15 +0200
commit588368dd2a46ddec70741c6cc87a79a0b26ee383 (patch)
tree69265caba9b1fb0ee126c142538b75fd49bbe8ee /inc
parentMove the source code of all xloop components to the common 'src' directory (diff)
downloadxloop-588368dd2a46ddec70741c6cc87a79a0b26ee383.tar.gz
xloop-588368dd2a46ddec70741c6cc87a79a0b26ee383.tar.xz
xloop-588368dd2a46ddec70741c6cc87a79a0b26ee383.zip
Add automatic generation of version and build type headers for compilation
This change replaces the static version and build type header file generation by CMake with dynamic CMake targets to generate the version file whenever a Make target is executed. Thus, there is no need anymore to reconfigure and rerun CMake after the repository version or build configuration has changed.
Diffstat (limited to 'inc')
-rw-r--r--inc/xloop/build.h.in10
-rw-r--r--inc/xloop/version.h.in10
2 files changed, 20 insertions, 0 deletions
diff --git a/inc/xloop/build.h.in b/inc/xloop/build.h.in
new file mode 100644
index 0000000..4a8fbd3
--- /dev/null
+++ b/inc/xloop/build.h.in
@@ -0,0 +1,10 @@
+/*
+ * AUTOGENERATED: DO NOT EDIT THIS FILE
+ */
+
+#ifndef BUILD_H_
+#define BUILD_H_
+
+#define XLOOP_BUILD "@XLOOP_BUILD@"
+
+#endif /* BUILD_H_ */
diff --git a/inc/xloop/version.h.in b/inc/xloop/version.h.in
new file mode 100644
index 0000000..99d730d
--- /dev/null
+++ b/inc/xloop/version.h.in
@@ -0,0 +1,10 @@
+/*
+ * AUTOGENERATED: DO NOT EDIT THIS FILE
+ */
+
+#ifndef VERSION_H_
+#define VERSION_H_
+
+#define XLOOP_VERSION "@XLOOP_VERSION@"
+
+#endif /* VERSION_H_ */