file(WRITE "${OUTFILE}" [[int main(void) { return 0; } ]]) string(REPLACE [[ ]] [[\ ]] OUTFILE "${OUTFILE}") string(REPLACE [[ ]] [[\ ]] INFILE "${INFILE}") file(WRITE "${DEPFILE}" "${OUTFILE}:\n${OUTFILE}: ${INFILE}\n")