1 2 3 4
add_library(StaticLib empty.cpp) file(GENERATE OUTPUT test_output CONTENT $<TARGET_OBJECTS:StaticLib>)