OpenCV 的CMakeLists.txt写法
cmake_minimum_required(VERSION 2.8)
project(image)
set(CMAKE_CXX_FLAGS "-std=c++11")
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
add_executable(image image.cpp)
target_link_libraries(image ${OpenCV_LIBS})