aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp
index 9c0d687ca6f..b26f9a70b5b 100644
--- a/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp
@@ -30,6 +30,15 @@ CMakeInputsNode::CMakeInputsNode(const FilePath &cmakeLists) :
setListInProject(false);
}
+CMakePresetsNode::CMakePresetsNode(const FilePath &projectPath) :
+ ProjectExplorer::ProjectNode(projectPath)
+{
+ setPriority(Node::DefaultPriority - 9);
+ setDisplayName(Tr::tr("CMake Presets"));
+ setIcon(DirectoryIcon(ProjectExplorer::Constants::FILEOVERLAY_PRODUCT));
+ setListInProject(false);
+}
+
CMakeListsNode::CMakeListsNode(const FilePath &cmakeListPath) :
ProjectExplorer::ProjectNode(cmakeListPath)
{
@@ -198,6 +207,10 @@ void CMakeTargetNode::setTargetInformation(const QList<FilePath> &artifacts, con
m_tooltip += Tr::tr("Build artifacts:") + "<br>" + tmp.join("<br>");
m_artifact = artifacts.first();
}
+ if (type == "EXECUTABLE")
+ setProductType(ProductType::App);
+ else if (type == "SHARED_LIBRARY" || type == "STATIC_LIBRARY")
+ setProductType(ProductType::Lib);
}
} // CMakeProjectManager::Internal