If you want to mount them to the brick, it's possible but tricky. You will likely need concrete anchors (Tapcon or similar) depending on the details of the bricks.
There are other ways to do it but the concrete anchors, when properly installed, give the most strength.