build: derive version string at build-time

refs #2749

Change-Id: Id1d164ff4b1fd5c7e9440a241ab299661ed933c4
diff --git a/core/version.cpp b/core/version.cpp.in
similarity index 88%
rename from core/version.cpp
rename to core/version.cpp.in
index b007102..7c44aac 100644
--- a/core/version.cpp
+++ b/core/version.cpp.in
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /**
- * Copyright (c) 2014-2016,  Arizona Board of Regents.
+ * Copyright (c) 2014-2017,  Arizona Board of Regents.
  *
  * This file is part of ndn-tools (Named Data Networking Essential Tools).
  * See AUTHORS.md for complete list of ndn-tools authors and contributors.
@@ -17,12 +17,12 @@
  * ndn-tools, e.g., in COPYING.md file.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "version.hpp"
+#include "core/version.hpp"
 
 namespace ndn {
 namespace tools {
 
-const char VERSION[] = "0.3";
+const char VERSION[] = "@VERSION_BUILD@";
 
 } // namespace tools
 } // namespace ndn