From: mpv Date: Wed, 4 May 2016 07:37:53 +0000 (+0300) Subject: Fix for the issue #1480 : make documentation targets near to SALOME common rules X-Git-Tag: V_2.3.0~50 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fc605121b11e81ff4d9cb8bb7584b9af98e7e654;p=modules%2Fshaper.git Fix for the issue #1480 : make documentation targets near to SALOME common rules --- 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);