Partial linking

See set_source_file_properties and generator expressions to support partial linking executables - Usage - CMake Discourse on how I approached performing partial linking.

I think using add_exeuctable is the natural way of creating a partially linked executable.

FYI, you can set the target SUFFIX property, and others, to alter the executable name. In GHS tools when you perform the final link the executable needs to end in a .o suffix.