aboutsummaryrefslogtreecommitdiff
path: root/src/version.c.cmake.in
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-07-29 15:44:02 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:45 +0200
commit42898f7d59e215434fa2aead84223f64b30fcee8 (patch)
tree5cdfb4c0c279c766efcbbc6c455ee58a5c8741f1 /src/version.c.cmake.in
parent6105a7797b96418d940ced7d88c6cf2b308b9711 (diff)
New way of injecting version information
Also, this fixes some incorrect headers and adds --version flags to programs which didn't yet have them.
Diffstat (limited to 'src/version.c.cmake.in')
-rw-r--r--src/version.c.cmake.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/version.c.cmake.in b/src/version.c.cmake.in
new file mode 100644
index 00000000..a22b4143
--- /dev/null
+++ b/src/version.c.cmake.in
@@ -0,0 +1,13 @@
+const char *crystfel_version_string()
+{
+ return "${CRYSTFEL_VERSION}";
+}
+
+const char *crystfel_licence_string()
+{
+ return "License GPLv3+: GNU GPL version 3 or later" \
+ " <http://gnu.org/licenses/gpl.html>.\n" \
+ "This is free software: you are free to change and redistribute it.\n" \
+ "There is NO WARRANTY, to the extent permitted by law.\n\n" \
+ "Written by Thomas White and others.";
+}