add_library(a OBJECT classa.cpp) target_link_libraries(a PRIVATE ${QT_LIBRARIES})