X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMLib.h;h=d8b8c27fbf0110292d652249de370b0a29d82905;hb=9f11db34cb1acacf545f819d6b552a95835d93bd;hp=e372e5f887f9455e7ed3d36e7f09e46f332eca66;hpb=af76296378f6fc398f0f6f516506d19019ff8287;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMLib.h b/lib/creaDevManagerLib/modelCDMLib.h index e372e5f..d8b8c27 100644 --- a/lib/creaDevManagerLib/modelCDMLib.h +++ b/lib/creaDevManagerLib/modelCDMLib.h @@ -72,7 +72,7 @@ public: const std::vector& 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& 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.