title: how to compile many specific targets in cmake/make
body: <p>I am using CMake to generate Makefile.</p>
  
  <p>Suppose I have the target <code>MyTarget1,MyTarget2,...,MyTarget100</code></p>
  
  <p>Now I only want obtain some specific targets, they are <code>MyTarget1, MyTarget2, MyTarget3, MyTarget4</code>.</p>
  
  <p>I do not know how to do that.</p>
  
  <p>I want something like</p>
  
  <pre><code>make MyTarget1,MyTarget2,MyTarget3,MyTarget4
  </code></pre>
  
  <p>or something like</p>
  
  <pre><code>cmake --build . --target MyTarget1,MyTarget2,MyTarget3,MyTarget4
  </code></pre>
  
  <p>I know that call the make or cmake many times must work. But I do not like the idea, because compile each target one by one leads to a lower parallism.</p>
  
  <p>Thanks for your time.</p>
  
  <h3>Reference</h3>
  
  <p>Follow topic disscuss only obtain one target. I want many specific target.</p>
  
  <p><a href="https://stackoverflow.com/questions/57412591/cmake-project-build-only-one-specific-executable-and-its-dependencies">cmake project build only one specific executable (and its dependencies)</a></p>