<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 01/28/2016 12:42 PM, Nikita Barawade
      wrote:<br>
    </div>
    <blockquote
cite="mid:PS1PR02MB1401CE2CBB15C8874988B0E386DA0@PS1PR02MB1401.apcprd02.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <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 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>
  </body>
</html>