add_library(A OBJECT a.c)
install(TARGETS A DESTINATION lib)