OpenCV 静态库 CMAKE 文件

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)

转载于:https://www.cnblogs.com/wangshuyi/p/11405326.html

你可能感兴趣的:(OpenCV 静态库 CMAKE 文件)