Salome HOME
Improve build procedure
[tools/simanio.git] / src / SimanIO_Version.hxx.in
diff --git a/src/SimanIO_Version.hxx.in b/src/SimanIO_Version.hxx.in
new file mode 100644 (file)
index 0000000..e012f96
--- /dev/null
@@ -0,0 +1,39 @@
+// Copyright (C) 2013  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#if !defined(SIMANIO_VERSION_H)
+#define SIMANIO_VERSION_H
+
+/*!
+  Specify version of SimanIO library, as follows
+
+  SIMANIO_VERSION_MAJOR       : (integer) number identifying major version
+  SIMANIO_VERSION_MINOR       : (integer) number identifying minor version
+  SIMANIO_VERSION_PATCH       : (integer) number identifying patch version
+  SIMANIO_VERSION_STR         : (string)  complete version number "major.minor.patch"
+  SIMANIO_VERSION             : (hex)     complete version number (major << 16) + (minor << 8) + patch
+*/
+
+#define SIMANIO_VERSION_MAJOR       @SIMANIO_MAJOR_VERSION@
+#define SIMANIO_VERSION_MINOR       @SIMANIO_MINOR_VERSION@
+#define SIMANIO_VERSION_PATCH       @SIMANIO_PATCH_VERSION@
+#define SIMANIO_VERSION_STR         "@SIMANIO_VERSION@"
+#define SIMANIO_VERSION             (SIMANIO_VERSION_MAJOR << 16 | SIMANIO_VERSION_MINOR << 8 | SIMANIO_VERSION_PATCH)
+
+#endif // SIMANIO_VERSION_H