From: Emmanuel STRÉBY Date: Wed, 15 Nov 2023 14:08:56 +0000 (+0100) Subject: Adding automatic sha1 storage during installation update X-Git-Tag: V9_12_0b1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cc72c8ca7ea1c1e717a6dc8425729118ba5f389c;p=modules%2Feficas.git Adding automatic sha1 storage during installation update --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c04f45d3..54d5cfca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,6 +46,9 @@ ELSE() MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !") ENDIF() +SALOME_SETUP_VERSION(${${PROJECT_NAME_UC}_VERSION}) +MESSAGE(STATUS "Building ${PROJECT_NAME_UC} ${${PROJECT_NAME_UC}_VERSION} from \"${${PROJECT_NAME_UC}_GIT_SHA1}\"") + # Find KERNEL # =========== SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL") @@ -210,3 +213,6 @@ INSTALL(FILES # Install the export set for use with the install-tree INSTALL(EXPORT ${PROJECT_NAME}TargetGroup DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}" FILE ${PROJECT_NAME}Targets.cmake) + +# Install __init__.py for versionning: +SALOME_CONFIGURE_FILE(src/EFICAS/__init__.py __init__.py INSTALL ${SALOME_INSTALL_PYTHON}/salome/eficas) diff --git a/src/EFICAS/__init__.py b/src/EFICAS/__init__.py new file mode 100644 index 00000000..a9287637 --- /dev/null +++ b/src/EFICAS/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: iso-8859-1 -*- +# Copyright (C) 2006-2023 CEA, EDF +# +# 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, 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 +# 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 +# + +__version__ ="@SALOMEEFICAS_VERSION@" +__sha1__ = "@SALOMEEFICAS_GIT_SHA1@"