Any person intending in his lifetime or by will or trust deed, to operate after his death, to found, maintain, and perpetuate in this state a public library, museum, gallery of art, or any or all thereof, for the diffusion of mechanical, scientific, artistic, and general knowledge, may for that purpose, convey in writing by words denoting a gift or grant to one or more trustees named in the gift or grant, and to their successors, any library or collection of books and works, for the public library, or any museum, or gallery of art in this state.