1 2 3 4
file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/output.txt" CONDITION 1 CONTENT "CONTENT argument" )