The county buildings are to be erected and kept in order and repair at the expense of the county under the direction of the county commission, which is authorized to make all necessary contracts for that purpose.