You're conflating two different things:
Rock Smash does not exist in Pokémon Tower Defense. The mode focuses on team composition and battle strategy, not overworld exploration.
To use Rock Smash, play a main series game (e.g., HeartGold/SoulSilver) and teach it to a compatible Pokémon.