OpenCV 静态库 CMAKE 文件
阅读原文时间:2023年07月09日阅读:1

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)

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章