build: Avoid building files multiple times
We don't have to build each source for every test, instead we could create a static library link it with every test, which will be a lot faster.
We don't have to build each source for every test, instead we could create a static library link it with every test, which will be a lot faster.