From 46fa50749f79e624a16adb081f7e5c5ff4a5b717 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 5 Sep 2020 20:00:11 +0200
Subject: Add a --version option
And fix that --reservation was missing from the optstring.
---
meson.build | 9 ++++++++-
pdf-simple-sign.cpp | 8 +++++++-
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index 0446cc3..ec6c73b 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,11 @@
-project('pdf-simple-sign', 'cpp', default_options : ['cpp_std=c++11'])
+project('pdf-simple-sign', 'cpp', default_options : ['cpp_std=c++11'],
+ version : '1.0')
+
+conf = configuration_data()
+conf.set('PROJECT_NAME', '"' + meson.project_name() + '"')
+conf.set('PROJECT_VERSION', '"' + meson.project_version() + '"')
+configure_file(output : 'config.h', configuration : conf)
+
cryptodep = dependency('libcrypto')
executable('pdf-simple-sign', 'pdf-simple-sign.cpp',
install : true,
diff --git a/pdf-simple-sign.cpp b/pdf-simple-sign.cpp
index 34acc9f..6bbb284 100644
--- a/pdf-simple-sign.cpp
+++ b/pdf-simple-sign.cpp
@@ -37,6 +37,8 @@
#include