]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Improve documentation generation. rnv/doc_env_imp
authorrnv <rnv@opencascade.com>
Mon, 26 Aug 2019 16:21:54 +0000 (19:21 +0300)
committerrnv <rnv@opencascade.com>
Mon, 26 Aug 2019 16:21:54 +0000 (19:21 +0300)
doc/salome/gui/BLSURFPLUGIN/CMakeLists.txt

index fd10c613f0e47bd41ce0792194f3473af477c13d..364dbfa11b805c3b70bad05911e14b66449033a7 100644 (file)
@@ -22,14 +22,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 BLSURFPlugin)
 SET(smesh_file "$(SMESH_ROOT_DIR)/bin/salome/collect_mesh_methods.py")
 SET(kernel_file "${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=BLSURFPlugin)
 
 SET(_cmd_options ${smesh_file} -d -o tmp/smeshBuilder.py BLSURFPlugin)
-SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${PYTHON_EXECUTABLE}" "${_cmd_options}")            
+SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${PYTHON_EXECUTABLE}" "${_cmd_options}" CONTEXT "BLSURFPLUGIN_DOC" ADDITIONAL_VARIABLES ${ADD_VAR})
 
 ADD_CUSTOM_TARGET(usr_docs ${CMAKE_COMMAND} -E make_directory tmp
   COMMAND ${PYTHON_EXECUTABLE} ${kernel_file} -o tmp/BLSURFPluginBuilder.py ${CMAKE_SOURCE_DIR}/src/BLSURFPlugin/BLSURFPluginBuilder.py
@@ -47,4 +47,4 @@ INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/BLSURFPLUGIN DESTINATION ${SALOME_
 INSTALL(FILES images/head.png DESTINATION ${SALOME_INSTALL_DOC}/gui/BLSURFPLUGIN)
 INSTALL(FILES images/head.png DESTINATION ${SALOME_INSTALL_DOC}/gui/BLSURFPLUGIN/blsurfpluginpy_doc)  
 
-SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES BLSURFPLUGIN)
\ No newline at end of file
+SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES BLSURFPLUGIN)