Make "Get Information" in the file by dragging it to your project. You will see checkboxes for each target. Just check the box or make sure it is set to make sure it is added to your target.
Adding something to a project usually, depending on the type of file, automatically adds it to all the goals that make sense.
Adding a file to the target tells the build system that the target depends on the file and that the file must be somehow included in the target assembly. In the case of resources, they are simply copied to the application package. In the case of .m files, they are compiled and linked.
I am not familiar with the Google Toolbox, but most likely, for unit testing, you want your unit test.m files to be added to your unit test target, and not to your real target program so that they do not compile into your application.
source share