configure_file(sourcefile.txt ${CMAKE_CURRENT_BINARY_DIR}/sourcefile.txt NO_SOURCE_PERMISSIONS USE_SOURCE_PERMISSIONS )