当前位置: 代码迷 >> 综合 >> openCV 小结3——CMakeLists.txt的写法
  详细解决方案

openCV 小结3——CMakeLists.txt的写法

热度:101   发布时间:2023-11-10 17:57:00.0

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})