Underweight pets should be eating foods that are around 30% protein and 20% fat if they're eating dry kibble, or 7% protein and 5% fat, or higher, if you're feeding a wet food.
Intersperse your pet's diet with small amounts of high-calorie supplemental canned food or canned products made of 100% meat sources.