You can get Rock Smash from a Hiker in Mauville City. Head to the house just south of the Pokémon Center and talk to him inside, and he'll hand over the HM. Once you have the required badge, you'll be able to use Rock Smash to break the cracked boulders you find around the region.