Updated CMake for stable parallel builds

* Updated CMake for stable parallel builds:
  * problem: when building in parallel, a custom target is built for *each* thread,
    leading to multiple threads pouring data into one source file.
    (I would think that 'parallel' would mean doing *different* things simultaneously,
    not the same thing multiple times...)