cmake: build as many source files as possible