add cmake rules to build