Salome HOME
Merge branch 'V8_0_0_BR'
[tools/yacsgen.git] / module_generator / mod_tmpl.py
index 7885659aa970c67b751b3936e505f836bcdd438c..e9fc30184957cae2cc4c4195efa07ddf4fca1ba3 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2014  EDF R&D
+# Copyright (C) 2009-2015  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
@@ -47,6 +47,9 @@ fi
 #   with_doc : ON|OFF
 #   with_gui : ON|OFF - module has its own GUI
 #   add_modules : code to find other modules
+#   major_version : major version of the module
+#   minor_version : minor version of the module
+#   patch_version : patch version of the module
 cmake_root_cpp = """
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)
 
@@ -61,9 +64,9 @@ CMAKE_POLICY(SET CMP0003 NEW)
 # Project name, upper case
 STRING(TOUPPER $${PROJECT_NAME} PROJECT_NAME_UC)
 
-SET($${PROJECT_NAME_UC}_MAJOR_VERSION 7)
-SET($${PROJECT_NAME_UC}_MINOR_VERSION 4)
-SET($${PROJECT_NAME_UC}_PATCH_VERSION 0)
+SET($${PROJECT_NAME_UC}_MAJOR_VERSION ${major_version})
+SET($${PROJECT_NAME_UC}_MINOR_VERSION ${minor_version})
+SET($${PROJECT_NAME_UC}_PATCH_VERSION ${patch_version})
 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)