]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Improve make dev_docs step:
authormpa <mpa@opencascade.com>
Tue, 22 Oct 2013 07:00:23 +0000 (07:00 +0000)
committermpa <mpa@opencascade.com>
Tue, 22 Oct 2013 07:00:23 +0000 (07:00 +0000)
- It does not install anything; only generates output with doxygen
- make install installs output files generated by make dev_docs
- make clean cleans generated files

doc/salome/tui/CMakeLists.txt

index fa59289dea7a56165abbad06f93f727a5cdd7c16..17a63ac72a95e36de9dc2d5fcfccf1fd56cdb667 100755 (executable)
 
 SALOME_CONFIGURE_FILE(doxyfile.in doxyfile)
 SALOME_CONFIGURE_FILE(static/header.html.in static/header.html)
-                
-ADD_CUSTOM_TARGET(dev_docs ${DOXYGEN_EXECUTABLE}
-  COMMAND ${PYTHON_EXECUTABLE} -c "import shutil, sys; shutil.rmtree(r'''${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_DOC}/tui/GUI''', True); shutil.copytree(r'''${CMAKE_CURRENT_BINARY_DIR}/GUI''', r'''${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_DOC}/tui/GUI'''); shutil.copy(r'''${CMAKE_CURRENT_SOURCE_DIR}/images/head.png''', r'''${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_DOC}/tui/GUI''')" 
-  VERBATIM 
-  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}             
-)
 
+ADD_CUSTOM_TARGET(dev_docs ${DOXYGEN_EXECUTABLE})
+
+INSTALL(CODE "FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/GUI)")
+INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/GUI DESTINATION ${SALOME_INSTALL_DOC}/tui)
+INSTALL(FILES images/head.png DESTINATION ${SALOME_INSTALL_DOC}/tui/GUI) 
+
+SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES GUI)
\ No newline at end of file