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)

相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2021-11-26
  • 2021-10-11
  • 2021-06-11
猜你喜欢
  • 2022-12-23
  • 2022-02-09
  • 2021-12-26
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案