1 2 3 4 5
configure_file(sourcefile.txt ${CMAKE_CURRENT_BINARY_DIR}/sourcefile.txt NO_SOURCE_PERMISSIONS USE_SOURCE_PERMISSIONS )