Clion配置opencv
配置好Cmakelist文件
cmake_minimum_required(VERSION 3.19)
project(opencv_xin)
set(CMAKE_CXX_STANDARD 11)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
# ************
add_executable(main main.cpp)
# ************
target_link_libraries(main ${OpenCV_LIBS})
到此,Ubuntu下clion配置opencv完成