From fc605121b11e81ff4d9cb8bb7584b9af98e7e654 Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 4 May 2016 10:37:53 +0300 Subject: [PATCH] Fix for the issue #1480 : make documentation targets near to SALOME common rules --- doc/gui/CMakeLists.txt | 4 +++- doc/tui/CMakeLists.txt | 2 +- src/Config/Config_DataModelReader.h | 4 ++-- src/Model/Model_Update.cpp | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) mode change 100644 => 100755 src/Config/Config_DataModelReader.h mode change 100644 => 100755 src/Model/Model_Update.cpp diff --git a/doc/gui/CMakeLists.txt b/doc/gui/CMakeLists.txt index d075f75e7..8fc8df70a 100644 --- a/doc/gui/CMakeLists.txt +++ b/doc/gui/CMakeLists.txt @@ -4,9 +4,11 @@ SET(HTML_RESOURCES index.html ) -ADD_CUSTOM_TARGET(INSTALL_GUI_DOCS +ADD_CUSTOM_TARGET(usr_docs SOURCES ${HTML_RESOURCES} COMMAND "${CMAKE_COMMAND}" --build "${PROJECT_BINARY_DIR}" --target install --config ${CMAKE_BUILD_TYPE} WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/doc/gui" ) INSTALL(FILES ${HTML_RESOURCES} DESTINATION ${SHAPER_INSTALL_GUI_DOC} OPTIONAL) + +INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target usr_docs)") diff --git a/doc/tui/CMakeLists.txt b/doc/tui/CMakeLists.txt index d5c50f223..2c0f54b34 100644 --- a/doc/tui/CMakeLists.txt +++ b/doc/tui/CMakeLists.txt @@ -16,7 +16,7 @@ CONFIGURE_FILE(doxyfile.in "${CMAKE_CURRENT_BINARY_DIR}/doxyfile" IMMEDIATE @ONLY) -ADD_CUSTOM_TARGET(INSTALL_TUI_DOCS +ADD_CUSTOM_TARGET(dev_docs COMMAND "${DOXYGEN_EXECUTABLE}" COMMAND "${CMAKE_COMMAND}" --build "${PROJECT_BINARY_DIR}" --target install --config ${CMAKE_BUILD_TYPE} WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/doc/tui" diff --git a/src/Config/Config_DataModelReader.h b/src/Config/Config_DataModelReader.h old mode 100644 new mode 100755 index d40fee1af..a66ad0f02 --- a/src/Config/Config_DataModelReader.h +++ b/src/Config/Config_DataModelReader.h @@ -36,7 +36,7 @@ class Config_DataModelReader : public Config_XMLReader CONFIG_EXPORT std::string rootType() const { return myRootTypes; } /// Returns number of folders under root - CONFIG_EXPORT int rootFoldersNumber() const { return int(myRootFolderNames.size()); } + CONFIG_EXPORT size_t rootFoldersNumber() const { return myRootFolderNames.size(); } /// Returns name of the folder by its Id /// \param theId id of the folder @@ -68,7 +68,7 @@ class Config_DataModelReader : public Config_XMLReader CONFIG_EXPORT std::string subType() const { return mySubTypes; } /// Returns number of folders under sub document - CONFIG_EXPORT int subFoldersNumber() const { return int(mySubFolderNames.size()); } + CONFIG_EXPORT size_t subFoldersNumber() const { return mySubFolderNames.size(); } /// Returns name of the folder by its Id /// \param theId id of the folder diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp old mode 100644 new mode 100755 index 3bec29763..3b7896aea --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -80,6 +80,8 @@ bool Model_Update::addModified(FeaturePtr theFeature, FeaturePtr theReason) { #ifdef DEB_UPDATE std::cout<<"*** Add process on finish "<name()< aCurrentlyUpdated; if (aCurrentlyUpdated.find(theFeature) == aCurrentlyUpdated.end()) { aCurrentlyUpdated.insert(theFeature); -- 2.39.2