updated cmake rules