From 2d75b7944990f1ce80b3847be1f8dff09df82dad Mon Sep 17 00:00:00 2001
From: Victor Toofic <toofics@users.noreply.github.com>
Date: 摹曛, 20 5月 2021 00:04:08 +0800
Subject: [PATCH] - use CMake PROJECT_DESCRIPTION var instead to be able to build with cmake < 3.8 (#118)

---
 src/templates/public_key.inja |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/templates/public_key.inja b/src/templates/public_key.inja
index 19f4d42..8867e4c 100644
--- a/src/templates/public_key.inja
+++ b/src/templates/public_key.inja
@@ -1,2 +1,10 @@
+#ifndef PUBLIC_KEY_H_
+#define PUBLIC_KEY_H_
+
 #define PRODUCT_NAME {{ product_name }}
-#define PUBLIC_KEY {1,2,3}
\ No newline at end of file
+
+#define PUBLIC_KEY {\
+{%for i in public_key%}{% if loop.index1 > 1 %},{% endif %}{{ i }}{%endfor%}\
+}
+#define PUBLIC_KEY_LEN {{ public_key_len }}
+#endif
\ No newline at end of file

--
Gitblit v1.9.1