cmake_minimum_required(VERSION 2.8) project( opencv-findcorners ) find_package( OpenCV REQUIRED ) include_directories( ${OpenCV_INCLUDE_DIRS} ) add_executable( opencv-findcorners opencv-findcorners.cpp ) target_link_libraries( opencv-findcorners ${OpenCV_LIBS} )