]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMLib.h
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / modelCDMLib.h
index e372e5f887f9455e7ed3d36e7f09e46f332eca66..d8b8c27fbf0110292d652249de370b0a29d82905 100644 (file)
@@ -72,7 +72,7 @@ public:
   const std::vector<modelCDMLibrary*>& GetLibraries() const;
 
   /**
-   * Creates a new library node for the actual project and registers it. It modifies the project model as well as the system.
+   * Creates a new library node for the actual project and registers it. It modifies the project model as well as the system. The created library is included in the lib's CMakeLists file.
    * @param name Name of the new library.
    * @param result Result message.
    * @return New library reference.
@@ -95,6 +95,21 @@ public:
    */
   void CheckStructure(std::map<std::string, bool>& properties);
 
+  /**
+   * Checks if the given library is included in the CMakeLists file.
+   * @param library_name Name of the library to check.
+   * @return True if the library is included, otherwise returns False.
+   */
+  bool IsLibraryIncluded(const std::string& library_name);
+
+  /**
+   * Sets the inclusion of the library in the lib's CMakeLists file. If the library inclusion already exist in file, then the line is uncommented/commented depending on the requested action. If the library inclusion doesn't exist yet, then it is included if the request is an inclusion.
+   * @param library_name Name of the library to include/exclude.
+   * @param toInclude True if the request is an inclusion, False otherwise.
+   * @return True if the request was processed successfully.
+   */
+  bool SetLibraryInclude(const std::string& library_name, const bool& toInclude);
+
 private:
   /**
    * Libraries references.