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
时间: 2024-10-11 14:46:49