OpenCV3的CMakeLists写法

cmake_minimum_required(VERSION 2.8)

set(CMAKE_CXX_FLAGS "-std=c++11")

find_package( OpenCV 3 REQUIRED )
include_directories(${OpenCV_INCLUDE_DIRS})

add_executable(imageBasics imageBasics.cpp)

target_link_libraries(imageBasics ${OpenCV_LIBS})

你可能感兴趣的:(OpenCV3的CMakeLists写法)