CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) PROJECT( calibrate ) FIND_PACKAGE( OpenCV REQUIRED ) ADD_EXECUTABLE( ${PROJECT_NAME} calibrate.cc ) TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${OpenCV_LIBS} )