Section 26G. Every building or structure, including any additions or major alterations thereto, which totals, in the aggregate, more than 7,500 gross square feet in floor area shall be protected throughout with an adequate system of automatic sprinklers in accordance with the provisions of the state building code.