SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
SET(${PROJECT_NAME_UC}_VERSION
${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
-
-SET(VERSION ${${PROJECT_NAME_UC}_VERSION})
-SET(VERSION_DEV "0")
+SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
# Our own set of macros:
LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/salome_adm/cmake_files")
# Header configuration
# ====================
EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; t=sys.argv[-1].split(\".\") ; t[:]=(int(elt) for elt in t) ; sys.stdout.write(\"0x%02x%02x%02x\"%tuple(t))" ${${PROJECT_NAME_UC}_VERSION}
- OUTPUT_VARIABLE XVERSION)
+ OUTPUT_VARIABLE ${PROJECT_NAME_UC}_XVERSION)
SET(input ${CMAKE_CURRENT_SOURCE_DIR}/KERNEL_version.h.in)
SET(output ${CMAKE_CURRENT_BINARY_DIR}/KERNEL_version.h)
MESSAGE(STATUS "Creation of ${output}")
#if !defined(__KERNEL_VERSION_H__)
#define __KERNEL_VERSION_H__
-/*
- KERNEL_VERSION is (major << 16) + (minor << 8) + patch.
+/*!
+ Specify version of SALOME KERNEL module, as follows
+
+ KERNEL_VERSION_MAJOR : (integer) number identifying major version
+ KERNEL_VERSION_MINOR : (integer) number identifying minor version
+ KERNEL_VERSION_MAINTENANCE : (integer) number identifying maintenance version
+ KERNEL_VERSION_STR : (string) complete version number "major.minor.maintenance"
+ KERNEL_VERSION : (hex) complete version number (major << 16) + (minor << 8) + maintenance
+ KERNEL_DEVELOPMENT : (integer) indicates development version when set to 1
*/
-#define KERNEL_VERSION_STR "@KERNEL_VERSION@"
-#define KERNEL_VERSION @XVERSION@
-#define KERNEL_DEVELOPMENT @VERSION_DEV@
+#define KERNEL_VERSION_MAJOR @SALOMEKERNEL_MAJOR_VERSION@
+#define KERNEL_VERSION_MINOR @SALOMEKERNEL_MINOR_VERSION@
+#define KERNEL_VERSION_MAINTENANCE @SALOMEKERNEL_PATCH_VERSION@
+#define KERNEL_VERSION_STR "@SALOMEKERNEL_VERSION@"
+#define KERNEL_VERSION @SALOMEKERNEL_XVERSION@
+#define KERNEL_DEVELOPMENT @SALOMEKERNEL_VERSION_DEV@
#endif // __KERNEL_VERSION_H__
-[SALOME KERNEL] : @VERSION@
-[DEVELOPMENT] : @VERSION_DEV@
+[SALOME KERNEL] : @SALOMEKERNEL_VERSION@
+[DEVELOPMENT] : @SALOMEKERNEL_VERSION_DEV@
master_doc = 'index'
# General information about the project.
-project = 'KERNEL python packages'
+project = 'SALOME KERNEL python packages'
copyright = '2010 EDF R&D'
# The version info for the project you're documenting, acts as replacement for
# built documents.
#
# The short X.Y version.
-version = '@VERSION@'
+version = '@SALOMEKERNEL_VERSION@'
# The full version, including alpha/beta/rc tags.
-release = '@VERSION@'
+release = '@SALOMEKERNEL_VERSION@'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea"><div align="right"><div class="version">Version: @VERSION@</div></div></div>
+<div id="titlearea"><div align="right"><div class="version">Version: @SALOMEKERNEL_VERSION@</div></div></div>
<!-- end header part -->
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea"><div align="right"><div class="version">Version: @VERSION@</div></div></div>
+<div id="titlearea"><div align="right"><div class="version">Version: @SALOMEKERNEL_VERSION@</div></div></div>
<!-- end header part -->
<component-username>Salome</component-username>
<component-type>Other</component-type>
<component-author>NRI</component-author>
- <component-version>@VERSION@</component-version>
+ <component-version>@SALOMEKERNEL_VERSION@</component-version>
<component-comment>GUI Neutral Context</component-comment>
<component-multistudy>1</component-multistudy>
<component-username>SalomeTestComponent</component-username>
<component-type>Other</component-type>
<component-author>NRI</component-author>
- <component-version>@VERSION@</component-version>
+ <component-version>@SALOMEKERNEL_VERSION@</component-version>
<component-comment>GUI Neutral Context</component-comment>
<component-multistudy>1</component-multistudy>
<constraint>'linux' ~ OS</constraint>
<component-username>SALOME_TestComponentPy</component-username>
<component-type>Other</component-type>
<component-author>NRI</component-author>
- <component-version>@VERSION@</component-version>
+ <component-version>@SALOMEKERNEL_VERSION@</component-version>
<component-comment>GUI Neutral Context</component-comment>
<component-multistudy>1</component-multistudy>
<constraint>'linux' ~ OS</constraint>