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.
*/
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.