file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/a "CONTENT")
file(CHMOD ${CMAKE_CURRENT_BINARY_DIR}/a PERMISSIONS OWNER_WRITE)
file(READ ${CMAKE_CURRENT_BINARY_DIR}/a content)