I forgot to mention, that I also have a custom_target called run_tests, which is created and depends on every test. By being build (in the sense of calling, since it does not have any source or anything else) this target arranges that all tests are being build and run.