configure_file(sourcefile.txt ${CMAKE_CURRENT_BINARY_DIR}/sourcefile.txt FILE_PERMISSIONS )