cmake_minimum_required(VERSION 3.12)
project(computer_cv)
set(CMAKE_CXX_STANDARD 11)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
message(${OpenCV_INCLUDE_DIRS})
link_directories(/usr/local/lib/opencv4/3rdparty)
SET(CMAKE_EXE_LINKER_FLAGS " -no-pie")
add_executable(computer_cv main.cpp)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} libippiw.a)
手机扫一扫
移动阅读更方便
你可能感兴趣的文章