Got template opencv file to work and added CMake file