I use a special macro for such purposes, something like this:<br> Sub Install()<br> Dim prj As Project<br> Dim sb As SolutionBuild = DTE.Solution.SolutionBuild<br> Dim prjs As Projects = DTE.Solution.Projects<br>
<br> For Each prj In prjs<br> If prj.Name = "INSTALL" Then<br> sb.BuildProject(<a href="http://sb.ActiveConfiguration.Name">sb.ActiveConfiguration.Name</a>, prj.UniqueName)<br> Exit For<br>
End If<br> Next<br> End Sub<br><br>Good thing is that you can put it on toolbar or bind to hot key and run it separately (while keeping active project you're debugging).<br><br><div class="gmail_quote">
On Tue, Feb 7, 2012 at 11:47 PM, <span dir="ltr"><<a href="mailto:david_bjornbak@agilent.com">david_bjornbak@agilent.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">Developers on our team have found issues with the difference between “INSTALL” and the default build or “F7” build all under Visual Studio. My question is, there’s a reasonable way to configure cmake or Visual Studio to run the INSTALL target when you hit “F7” or use the default “Build Solution” functionality to run INSTALL.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">We’re working a fairly large project and the default setting of having INSTALL dependent on ALL or separating out the two targets makes sense when you’re building the entire project.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">However, we allow developers to build sub projects and it makes sense if these sub project just install quickly into a larger pre-built installation directory. The confusion currently is, they run ALL_BUILD or “F7” and the build finishes and they forget to run “INSTALL”. Particularly we, had developers that worked formally on smaller non-Cmake Visual Studio projects and not Linux so, they’re not used to the make all and then make install defacto standard.<u></u><u></u></p>
<h1 style="background:white"><span style="font-size:11.0pt;font-weight:normal">This request is similar as the following on “<span style>Selecting INSTALL target in Visual Studio Configuration by default” but, I wanted to see if anyone had any other suggestions on this topic.</span></span><span style="font-size:26.0pt"><u></u><u></u></span></h1>
<p class="MsoNormal"><a href="http://www.cmake.org/pipermail/cmake/2011-April/044025.html" target="_blank">http://www.cmake.org/pipermail/cmake/2011-April/044025.html</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">++David->Bjornbak;<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>