Linking static libraries with custom object files

In CMake, static libraries do not “link” (though some linkers will check symbol availability, there’s no actual copying of symbols between libraries; only object files get collected).

I believe that TARGET_OBJECTS is derived from the compilation commands CMake generates and manual .obj files are not considered. I don’t know that CMake provides this abstraction right now. This issue seems to be the one you’d be most interested in.