StreamTest CMake generation: Link against already created library if possible

1 job for richter-dev in 2 minutes and 49 seconds (queued for 3 seconds)