title: How can I build multiple targets using cmake --build
body: <p>I have a CMake build with a bunch of different targets <code>A</code>, <code>B</code>, <code>C</code>, etc.
  An external application is tasked with building, and currently does so by calling </p>
  
  <pre><code>cmake --build .
  </code></pre>
  
  <p>However, this builds <em>all</em> targets, and sometimes I only want to build a subset, like <code>A</code> and <code>B</code> but not <code>C</code>.
  The <code>--target</code> flag can only be given once, and only accepts a single target.</p>
  
  <p>I guess I could let CMake generate the appropriate Makefile, and then call <code>make A B</code> explicitly, but that takes away the nice thing about <code>cmake --build</code> being build system agnostic.</p>
  
  <p>Is there a nice way to solve this?</p>