From 5ead55c8b206daf2813abe947f65c9c77d1f3fb9 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Mon, 19 Aug 2013 17:53:03 +0000 Subject: [PATCH] Added version information to config.h --- gtsam/config.h.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gtsam/config.h.in b/gtsam/config.h.in index 120e06565..a9e3ba789 100644 --- a/gtsam/config.h.in +++ b/gtsam/config.h.in @@ -17,6 +17,13 @@ #pragma once +// Library version +#define GTSAM_VERSION_MAJOR @GTSAM_VERSION_MAJOR@ +#define GTSAM_VERSION_MINOR @GTSAM_VERSION_MINOR@ +#define GTSAM_VERSION_PATCH @GTSAM_VERSION_PATCH@ +#define GTSAM_VERSION_STRING "@GTSAM_VERSION_MAJOR@.@GTSAM_VERSION_MINOR@.@GTSAM_VERSION_PATCH@" +#define GTSAM_VERSION_NUMERIC (10000 * @GTSAM_VERSION_MAJOR@ + 100 * @GTSAM_VERSION_MINOR@ + @GTSAM_VERSION_PATCH@) + // Paths to example datasets distributed with GTSAM #define GTSAM_SOURCE_TREE_DATASET_DIR "@CMAKE_SOURCE_DIR@/examples/Data" #define GTSAM_INSTALLED_DATASET_DIR "@GTSAM_TOOLBOX_INSTALL_PATH@/gtsam_examples/Data" @@ -30,4 +37,4 @@ // Whether GTSAM is compiled to use Rot3::EXPMAP as the default coordinates mode for Rot3's retract and localCoordinates (otherwise, Pose3::CAYLEY will be used) #ifndef GTSAM_USE_QUATERNIONS #cmakedefine GTSAM_ROT3_EXPMAP -#endif \ No newline at end of file +#endif