Solved by Tobias_Czempiel in post #2 
              
              
                Hi, 


checkout this example. It pretty much the makefile from the example except that I added OpenCV as well. 
From there on its just normal CMake!