1 2 3 4 5 6 7
add_custom_target(empty) file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/test.txt" CONTENT "[$<TARGET_LINKER_OUTPUT_NAME:empty>]" )