CLion中关于OpenCV的CMakeLists.txt配置

cmake_minimum_required(VERSION 3.24)
project(OpenCVTest)
set(CMAKE_CXX_STANDARD 17)
#set(CMAKE_PREFIX_PATH D:/Library/OpenCV/opencv-4.6.0/install)
find_package(OpenCV REQUIRED)
add_executable(OpenCVTest main.cpp)
target_link_libraries(OpenCVTest ${OpenCV_LIBS})

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