Clion中的CMAKE配置OpenCv

Clion中的CMAKE配置OpenCv

cmake_minimum_required(VERSION 3.24)
project(xxx)

set(CMAKE_CXX_STANDARD 17)
find_package(OpenCV REQUIRED)
add_executable(xxx main.cpp)
target_link_libraries(xxx  ${OpenCV_LIBS})

你可能感兴趣的:(opencv,C++,clion,opencv,计算机视觉,人工智能)