cmake_minimum_required(VERSION 3.10)
project(main)
set(CMAKE_PREFIX_PATH /data/opencv-4.4.0/distribute/)
find_package(OpenCV REQUIRED)
include_directories(/data/opencv-4.4.0/distribute/include)
link_directories(/data/opencv-4.4.0/distribute/lib)
add_executable(main main.cpp)
target_link_libraries(main opencv_core opencv_imgproc opencv_highgui opencv_videoio)
No comments:
Post a Comment