CMakePM: Refactor CMakeLists|Cache.txt as constants

Change-Id: I7165fa1d219a0c59bc519a9af1cd194414c4311c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Cristian Adam
2024-01-22 18:10:43 +01:00
parent b953735b22
commit 76a8966739
13 changed files with 39 additions and 25 deletions

View File

@@ -53,7 +53,7 @@ bool CMakeListsNode::showInSimpleTree() const
std::optional<FilePath> CMakeListsNode::visibleAfterAddFileAction() const
{
return filePath().pathAppended("CMakeLists.txt");
return filePath().pathAppended(Constants::CMAKE_LISTS_TXT);
}
CMakeProjectNode::CMakeProjectNode(const FilePath &directory) :
@@ -189,7 +189,7 @@ void CMakeTargetNode::setConfig(const CMakeConfig &config)
std::optional<FilePath> CMakeTargetNode::visibleAfterAddFileAction() const
{
return filePath().pathAppended("CMakeLists.txt");
return filePath().pathAppended(Constants::CMAKE_LISTS_TXT);
}
void CMakeTargetNode::build()