fixed missing configure call
refactored linking to opencv out to its own cmake-function (like the other external libs)