I hate to resurrect a super old theme, but I just ran into this.
An alternative alternative way is to create another source file inside which only the remote source object files are built, so basically a file with the name somewhere else \ sources and assigns it the same intermediate directory.
Then add the file 'dirs' to your source directory and specify this remote folder inside. Then connect directly to the object by adding something like this to the source file:
$(TARGETLIBS) = $(PROJECT_OBJ_ROOT)\$(O)\source.obj
This way you don't need to compile as lib, but build treats it as one and links without any dependency checking or location care.
Naturally, you may run into some problems if you give them the same staging directory and the same source name of the source file (source.cpp)
source share