Map left mouse button in Karabiner Elements
BUT: it's actually quite simple (if I didn't mis-interpret your question):

Just select [Add item] in K.-Element's "Simple Modifications" tab, choose "caps_lock" (left) and "button1" (right) – and you're DONE!

… no need for "Complex Modifications", btw.