Salome HOME
Copyright update 2021
[plugins/gmshplugin.git] / doc / salome / gui / GMSHPLUGIN / CMakeLists.txt
index 3ac33929d87d12ec05fa782860e84bc13f8ca140..d9f62ad427f8156a1227af4d6002127ef477ca69 100644 (file)
@@ -1,5 +1,5 @@
 # Copyright (C) 2012-2015  ALNEOS
-# Copyright (C) 2016-2019  EDF R&D
+# Copyright (C) 2016-2021  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
@@ -15,6 +15,7 @@
 # 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.alneos.com/ or email : contact@alneos.fr
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
@@ -23,14 +24,14 @@ SALOME_CONFIGURE_FILE(doxyfile_py.in doxyfile_py)
 SALOME_CONFIGURE_FILE(static/header.html.in ${CMAKE_CURRENT_BINARY_DIR}/static/header.html)
 SALOME_CONFIGURE_FILE(static/header_py.html.in ${CMAKE_CURRENT_BINARY_DIR}/static/header_py.html)
 
-SET(DOC_SMESH_MeshersList GMSHPlugin)
 SET(smesh_file "$(SMESH_ROOT_DIR)/bin/salome/collect_mesh_methods.py")
 SET(kernel_file "$ENV{KERNEL_ROOT_DIR}/bin/salome/prepare_generating_doc.py")
 
-SALOME_ACCUMULATE_ENVIRONMENT(SMESH_MeshersList NOCHECK ${DOC_SMESH_MeshersList})
+SET(ADD_VAR)
+LIST(APPEND ADD_VAR SMESH_MeshersList=GMSHPlugin)
 
 SET(_cmd_options ${smesh_file}  -d -o tmp/smeshBuilder.py GMSHPlugin)
-SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${PYTHON_EXECUTABLE}" "${_cmd_options}")            
+SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${PYTHON_EXECUTABLE}" "${_cmd_options}" CONTEXT "GMSHPLUGIN_DOC" ADDITIONAL_VARIABLES ${ADD_VAR})
 
 ADD_CUSTOM_TARGET(usr_docs ${CMAKE_COMMAND} -E make_directory tmp
   COMMAND ${PYTHON_EXECUTABLE} ${kernel_file} -o tmp/GMSHPluginBuilder.py ${CMAKE_SOURCE_DIR}/src/GMSHPlugin/GMSHPluginBuilder.py