The board of county commissioners may, by resolution, permit the use of public grounds or buildings under its control for a public library or any other public purpose, upon such terms as it prescribes.