]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Improve documentation
authorvsr <vsr@opencascade.com>
Mon, 8 Apr 2013 13:56:35 +0000 (13:56 +0000)
committervsr <vsr@opencascade.com>
Mon, 8 Apr 2013 13:56:35 +0000 (13:56 +0000)
doc/salome/gui/GEOM/CMakeLists.txt

index ed1a42dd6cd56bebf9a98f546d8bb6119431cc31..05c2bcbf5b524bf2433c3ae79c4f9c9ee1152145 100644 (file)
@@ -38,12 +38,13 @@ IF(WINDOWS)
   STRING(REPLACE "/" "\\" f ${f})
 ENDIF(WINDOWS)
 
-ADD_CUSTOM_TARGET(usr_docs ${PYTHON_EXECUTABLE} ${f} ${CMAKE_SOURCE_DIR}/src/GEOM_SWIG/geomBuilder.py
-  COMMAND ${PYTHON_EXECUTABLE} ${f} ${CMAKE_SOURCE_DIR}/src/GEOM_SWIG/gsketcher.py
+ADD_CUSTOM_TARGET(usr_docs mkdir -p tmp 
+  COMMAND ${PYTHON_EXECUTABLE} ${f} -o tmp/geomBuilder.py ${CMAKE_SOURCE_DIR}/src/GEOM_SWIG/geomBuilder.py
+  COMMAND ${PYTHON_EXECUTABLE} ${f} -o tmp/gsketcher.py ${CMAKE_SOURCE_DIR}/src/GEOM_SWIG/gsketcher.py
   COMMAND ${DOXYGEN_EXECUTABLE} doxyfile_tui 
   COMMAND ${DOXYGEN_EXECUTABLE} doxyfile_py
   COMMAND ${DOXYGEN_EXECUTABLE} doxyfile
-  COMMAND ${PYTHON_EXECUTABLE} -c "import os; os.remove(r'''geomBuilder.py'''); os.remove(r'''gsketcher.py''')"
+  COMMAND ${PYTHON_EXECUTABLE} -c "import shutil; shutil.rmtree(r'''tmp''')"
   COMMAND ${PYTHON_EXECUTABLE} -c "import shutil, sys; shutil.rmtree(r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/GEOM''', True); shutil.copytree(r'''${CMAKE_CURRENT_BINARY_DIR}''', r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/GEOM''', ignore=shutil.ignore_patterns('*usr_docs*', '*CMakeFiles*', '*.cmake', 'doxyfile*', '*.vcproj', 'static', 'Makefile*')); shutil.copy(r'''${CMAKE_CURRENT_SOURCE_DIR}/images/head.png''', r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/GEOM'''); shutil.copy(r'''${CMAKE_CURRENT_SOURCE_DIR}/static/SALOME_BOA_PA.pdf''', r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/GEOM''')"
   VERBATIM 
   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}