If you want to use the original ALVAR library. From what you say all you're missing is highgui in you package. So adding a find_package(OpenCV REQUIRED components core highgui) to you cmakelist should do the job.