mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 02:00:34 +05:00
bos #26458 Versioning of sources via git commit id (sha1)
This commit is contained in:
parent
3b4c34ed36
commit
6bdd4758a7
@ -17,22 +17,15 @@
|
|||||||
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
#
|
#
|
||||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)
|
||||||
PROJECT(SalomeSMESH C CXX)
|
|
||||||
|
|
||||||
INCLUDE(CMakeDependentOption)
|
INCLUDE(CMakeDependentOption)
|
||||||
|
|
||||||
# Versioning
|
# Project name
|
||||||
# ===========
|
# ============
|
||||||
# Project name, upper case
|
# original
|
||||||
|
PROJECT(SalomeSMESH C CXX)
|
||||||
|
# upper case
|
||||||
STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
|
STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
|
||||||
|
|
||||||
SET(${PROJECT_NAME_UC}_MAJOR_VERSION 9)
|
|
||||||
SET(${PROJECT_NAME_UC}_MINOR_VERSION 7)
|
|
||||||
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(${PROJECT_NAME_UC}_VERSION_DEV 1)
|
|
||||||
|
|
||||||
# Common CMake macros
|
# Common CMake macros
|
||||||
# ===================
|
# ===================
|
||||||
SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")
|
SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")
|
||||||
@ -43,6 +36,11 @@ ELSE()
|
|||||||
MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
|
MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
# ===========
|
||||||
|
SALOME_SETUP_VERSION(9.7.0 DEVELOPMENT)
|
||||||
|
MESSAGE(STATUS "Building ${PROJECT_NAME_UC} ${${PROJECT_NAME_UC}_VERSION} from \"${${PROJECT_NAME_UC}_GIT_SHA1}\"")
|
||||||
|
|
||||||
# Find KERNEL
|
# Find KERNEL
|
||||||
# ===========
|
# ===========
|
||||||
SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
|
SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
|
||||||
@ -328,7 +326,6 @@ ENDIF()
|
|||||||
|
|
||||||
# Header configuration
|
# Header configuration
|
||||||
# ====================
|
# ====================
|
||||||
SALOME_XVERSION(${PROJECT_NAME})
|
|
||||||
SALOME_CONFIGURE_FILE(SMESH_version.h.in SMESH_version.h INSTALL ${SALOME_INSTALL_HEADERS})
|
SALOME_CONFIGURE_FILE(SMESH_version.h.in SMESH_version.h INSTALL ${SALOME_INSTALL_HEADERS})
|
||||||
|
|
||||||
# Configuration export
|
# Configuration export
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
[SALOME SMESH] : @SALOMESMESH_VERSION@
|
[SALOME SMESH] : @SALOMESMESH_VERSION@
|
||||||
[DEVELOPMENT] : @SALOMESMESH_VERSION_DEV@
|
[DEVELOPMENT] : @SALOMESMESH_VERSION_DEV@
|
||||||
[DESCRIPTION] : SALOME Mesh module
|
[DESCRIPTION] : SALOME Mesh module
|
||||||
|
[SHA1] : @SALOMESMESH_GIT_SHA1@
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
|
|
||||||
# scripts / static
|
# scripts / static
|
||||||
SET(_bin_SCRIPTS
|
SET(_bin_SCRIPTS
|
||||||
__init__.py
|
|
||||||
smeshstudytools.py
|
smeshstudytools.py
|
||||||
)
|
)
|
||||||
|
|
||||||
# --- rules ---
|
# --- rules ---
|
||||||
|
|
||||||
SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/smesh)
|
SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/smesh)
|
||||||
|
SALOME_CONFIGURE_FILE(__init__.py __init__.py INSTALL ${SALOME_INSTALL_PYTHON}/salome/smesh)
|
||||||
|
@ -18,3 +18,4 @@
|
|||||||
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
#
|
#
|
||||||
|
|
||||||
|
__version__ = "@SALOMESMESH_GIT_SHA1@"
|
||||||
|
Loading…
Reference in New Issue
Block a user