#新的技术# C++调用Python脚本
2018-06-05 本文已影响0人
我愿化作一道辰光
cmake
python
find_package(PythonLibs REQUIRED)
include_directories(${PYTHON_INCLUDE_DIRS})
target_link_libraries(nv3DReconstruction ${PYTHON_LIBRARIES})
header.h
include "python2.7/Python.h"
main.cpp
Py_Initialize();