From 5c6c442883df7c926c868ab3bfede39d5b4aff66 Mon Sep 17 00:00:00 2001
From: dt <qtc-commiter@nokia.com>
Date: Mon, 12 Jan 2009 17:51:50 +0100
Subject: [PATCH] Fixes:    Add install target and don't create
 runconfigurations for targets without executable.

Details:  One step at a time.
---
 src/plugins/cmakeprojectmanager/cmakeproject.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp
index f8d68ccfaa7..c2fafed14f8 100644
--- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp
@@ -320,6 +320,8 @@ void CMakeProject::restoreSettingsImpl(ProjectExplorer::PersistentSettingsReader
         qDebug()<<"Create run configurations of m_targets";
         bool setActive = false;
         foreach(const CMakeTarget &ct, m_targets) {
+            if (ct.executable.isEmpty())
+                continue;
             QSharedPointer<ProjectExplorer::RunConfiguration> rc(new CMakeRunConfiguration(this, ct.executable, ct.workingDirectory));
             addRunConfiguration(rc);
             // The first one gets the honour of beeing the active one
@@ -501,7 +503,7 @@ void CMakeCbpParser::parseTarget()
     while (!atEnd()) {
         readNext();
         if (isEndElement()) {
-            if (m_targetType || m_target.title == "all") {
+            if (m_targetType || m_target.title == "all" || m_target.title == "install") {
                 m_targets.append(m_target);
             }
             return;
-- 
GitLab