]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
CMake: making usr_docs built when "make all" - documentation generation can be
authorbruneton <bruneton>
Mon, 29 Jul 2013 12:13:22 +0000 (12:13 +0000)
committerbruneton <bruneton>
Mon, 29 Jul 2013 12:13:22 +0000 (12:13 +0000)
disabled with SALOME_BUILD_DOCS=OFF

doc/doxygen/CMakeLists.txt

index cc2be55ca74d5bd25011b015835a1c7b8c04d712..1dde0d94f503145cb54453c22a6fce3856e3a81e 100644 (file)
@@ -31,7 +31,7 @@ FILE(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/medcouplingexamples.doxy" input
 FILE(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/BuildPyExamplesFromCPP.py" pythondocexamplesgenerator)
 FILE(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}" output)
 
-ADD_CUSTOM_TARGET(usr_docs
+ADD_CUSTOM_TARGET(usr_docs ALL
   COMMAND ${PYTHON_EXECUTABLE} ${pythondocexamplesgenerator} ${input} ${output}
   COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile_med_user
   COMMAND ${PYTHON_EXECUTABLE} -c "import shutil, sys; shutil.rmtree(r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/MED''', True); shutil.copytree(r'''${CMAKE_CURRENT_BINARY_DIR}/doc_ref_user/html''', r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/MED'''); shutil.copy(r'''${CMAKE_CURRENT_SOURCE_DIR}/images/head.png''', r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/MED''')"