add_library(AnObjLib OBJECT a.c)
target_link_libraries(AnObjLib OtherLib)