aboutsummaryrefslogtreecommitdiff
path: root/src/cmake_variables.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmake_variables.h.in')
-rw-r--r--src/cmake_variables.h.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cmake_variables.h.in b/src/cmake_variables.h.in
new file mode 100644
index 0000000..0347d6a
--- /dev/null
+++ b/src/cmake_variables.h.in
@@ -0,0 +1,19 @@
+#ifndef CPROJ_TEMPLATE_H
+#define CPROJ_TEMPLATE_H
+
+#ifdef __GNUC__
+#define UNUSED(x) UNUSED_##x __attribute__((__unused__))
+#else
+#define UNUSED(x) UNUSED_##x
+#endif
+
+#ifdef __GNUC__
+#define UNUSED_FUNCTION(x) __attribute__((__unused__)) UNUSED_##x
+#else
+#define UNUSED_FUNCTION(x) UNUSED_##x
+#endif
+
+#define CMAKE_PROJECT_VERSION "@PROJECT_VERSION@"
+#define CMAKE_PROJECT_NAME "@PROJECT_NAME@"
+
+#endif