-
首先,我们从 pybind11 github网址:https://github.com/pybind/pybind11 上下载源码。
-
cmake工程之前,要先安装pytest pip install pytest,否则会出错
-
用CMake编译并运行测试用例:
mkdir build
cd build
cmake …
cmake --build . --config Release --target check
作者:fitzzhang
来源:优快云
原文:https://blog.youkuaiyun.com/fitzzhang/article/details/78988682
版权声明:本文为博主原创文章,转载请附上博文链接!