<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:11pt;color:#000000;background-color:#FFFFFF;font-family:'Courier New',monospace;">
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:11pt; font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<font style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Hi,</span></span><br style="font-family:Calibri,Arial,Helvetica,sans-serif">
</font>
<div id="divtagdefaultwrapper" style="font-size:10pt; font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; margin:0px">
<div style="margin:0px"><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"><br style="font-family:Calibri,Arial,Helvetica,sans-serif">
</span></span></div>
<div style="margin:0px"><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif">Thanks Nils !</span></span></div>
<div style="margin:0px"><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"><br>
</span></span></div>
<div style="margin:0px"><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Regards,</span></span></span><span style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"></span><span style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"></span><br style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif"></span><span style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"></span><span style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"></span></span></div>
</div>
</div>
</div>
<div style="font-size:11pt; font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<div style="font-size:10pt; font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; margin:0px">
<div style="margin:0px"><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Nikita<strong style="text-decoration:underline"><em></em></strong></span></span></span></span></div>
</div>
</div>
</div>
<div style="font-size:11pt; font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<div style="font-size:10pt; font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; margin:0px">
<div style="color:rgb(33,33,33); font-family:'Segoe UI','Segoe WP','Segoe UI WPC',Tahoma,Arial,sans-serif; font-size:15px; margin:0px; background-color:rgb(255,255,255)">
</div>
</div>
</div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Nils Gladitz <nilsgladitz@gmail.com><br>
<b>Sent:</b> 28 January 2016 05:27 PM<br>
<b>To:</b> Nikita Barawade; cmake@cmake.org<br>
<b>Subject:</b> Re: [CMake] Multiple Visual Studio Solutions through same master CMakeLists.txt</font>
<div> </div>
</div>
<div><br>
<br>
<div class="moz-cite-prefix">On 01/28/2016 12:42 PM, Nikita Barawade wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="">
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:11pt; font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<font style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Hi All ,</span></span></font></div>
<div id="divtagdefaultwrapper" style="font-size:11pt; font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<font style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"><br>
</font></div>
<div id="divtagdefaultwrapper" style="font-size:11pt; font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<font style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-family:Calibri,Arial,Helvetica,sans-serif"></span></span>
<div>It is possible to same master CMakeList to generate multiple visual studio solution files ?</div>
<div><br>
</div>
<div>here is my master CMakeList :</div>
<div><br>
</div>
<div>cmake_minimum_required (VERSION 2.8.11)</div>
<div>project (Myproject_all)</div>
<div><br>
</div>
<div>set_property (GLOBAL PROPERTY USE_FOLDERS ON)</div>
<div><br>
</div>
<div># Set compiler flags and options. </div>
<div># enable the Visual Studio warning level to 4</div>
<div>set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")</div>
<div><br>
</div>
<div># Sub-directories where more CMakeLists.txt exist</div>
<div>add_subdirectory (lib1)</div>
<div>add_subdirectory (TestApp1)</div>
<div>add_subdirectory (lib2)</div>
<div>add_subdirectory (TestApp2)</div>
<div>add_subdirectory (TestApp3)</div>
<div><br>
</div>
<div>Now , my project "Myproject_all" includes all sub-projects as lib1,TestApp1,lib2,TestApp2,TestApp3 (testApps depend on libraries )</div>
<div>I want another solution to be generated through same CMakeList for example with name "Myproject" which includes only ,</div>
<div>lib1,TestApp1,lib2.</div>
<div>I should not always edit master CMakeList to change project name and remove TestApp2 and TestApp3.Is there any way to automate this?</div>
</font></div>
</div>
</div>
</blockquote>
<br>
CMake generates one solution per directory (CMakeLists.txt) that has its own project() call.<br>
To put <font style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif">
lib1,TestApp1,lib2 into their own solution you would therefor have to put them into a common parent directory (distinct from the other targets) and give that parent directory's CMakeLists.txt its own project(</font><font style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif"><font style="font-size:11pt; font-family:Calibri,Arial,Helvetica,sans-serif">Myproject</font>)
 call.<br>
<br>
Nils<br>
</font></div>
</div>
</div>
************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended
 solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you
 are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please
 delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused
 by any virus transmitted by this email. *************************************************************************************************************************************************************
</body>
</html>