updated cmake to use OBJECT target