project(test)
cmake_minimum_required(VERSION 3.0)

find_package(OpenCV REQUIRED)
find_package (Python3 COMPONENTS Interpreter Development REQUIRED)

include_directories( ${Python3_INCLUDE_DIRS})
link_directories(${Python3_LIBRARY_DIRS})

add_executable( test test.cpp )
target_link_libraries( test ${OpenCV_LIBS} ${Python3_LIBRARIES} )

  

相关文章:

  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2021-06-11
  • 2022-03-01
  • 2021-09-24
猜你喜欢
  • 2021-11-19
  • 2021-10-22
  • 2021-12-07
  • 2022-12-23
  • 2021-11-15
  • 2021-05-17
  • 2022-12-23
相关资源
相似解决方案