From fe898f233508f109ce12f989766400aa88f4d1f0 Mon Sep 17 00:00:00 2001 From: mpa Date: Wed, 23 Oct 2013 05:36:09 +0000 Subject: [PATCH] Cmake: add a deletion of documentation directory to command make clean --- doc/en/CMakeLists.txt | 2 ++ doc/fr/CMakeLists.txt | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt index 989053e2..13c2ca95 100755 --- a/doc/en/CMakeLists.txt +++ b/doc/en/CMakeLists.txt @@ -91,3 +91,5 @@ ADD_CUSTOM_TARGET(html_docs_en ${CALL_STR} ${CMAKE_CURRENT_BINARY_DIR}/env_s.${E INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target html_docs_en)") INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION ${SALOME_INSTALL_DOC}/gui/HOMARD/en) + +SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES html) diff --git a/doc/fr/CMakeLists.txt b/doc/fr/CMakeLists.txt index 71828b7c..e6893b53 100755 --- a/doc/fr/CMakeLists.txt +++ b/doc/fr/CMakeLists.txt @@ -90,4 +90,6 @@ FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/env_s.${EXT} "${SCR}") ADD_CUSTOM_TARGET(html_docs_fr ${CALL_STR} ${CMAKE_CURRENT_BINARY_DIR}/env_s.${EXT} && ${SPHINXBUILD} -c ${PROJECT_BINARY_DIR}/doc/fr -b html ${CMAKE_CURRENT_SOURCE_DIR} html) INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target html_docs_fr)") -INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION ${SALOME_INSTALL_DOC}/gui/HOMARD/fr) \ No newline at end of file +INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION ${SALOME_INSTALL_DOC}/gui/HOMARD/fr) + +SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES html) \ No newline at end of file -- 2.39.2