Salome HOME
Make it work in HOMARD standalone case
[modules/homard.git] / HOMARD_version.h.in
index d1873f6fcb03d27121d768f3aa980690b0f909ee..2a90d7d3509f382314e09a6bd8380464b548690d 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2020  CEA/DEN, EDF R&D
 //
 // 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.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 #if !defined(__HOMARD_VERSION_H__)
 #define __HOMARD_VERSION_H__
 
-/*
-  HOMARD_VERSION is (major << 16) + (minor << 8) + patch.
+/*!
+  Specify version of SALOME HOMARD module, as follows
+
+  HOMARD_VERSION_MAJOR       : (integer) number identifying major version
+  HOMARD_VERSION_MINOR       : (integer) number identifying minor version
+  HOMARD_VERSION_MAINTENANCE : (integer) number identifying maintenance version
+  HOMARD_VERSION_STR         : (string)  complete version number "major.minor.maintenance"
+  HOMARD_VERSION             : (hex)     complete version number (major << 16) + (minor << 8) + maintenance
+  HOMARD_DEVELOPMENT         : (integer) indicates development version when set to 1
 */
 
-#define HOMARD_VERSION_STR "@VERSION@"
-#define HOMARD_VERSION     @XVERSION@
-#define HOMARD_DEVELOPMENT @VERSION_DEV@
+#define HOMARD_VERSION_MAJOR       @SALOMEHOMARD_MAJOR_VERSION@
+#define HOMARD_VERSION_MINOR       @SALOMEHOMARD_MINOR_VERSION@
+#define HOMARD_VERSION_MAINTENANCE @SALOMEHOMARD_PATCH_VERSION@
+#define HOMARD_VERSION_STR         "@SALOMEHOMARD_VERSION@"
+#define HOMARD_VERSION             @SALOMEHOMARD_XVERSION@
+#define HOMARD_DEVELOPMENT         @SALOMEHOMARD_VERSION_DEV@
 
 #endif // __HOMARD_VERSION_H__