摘要: 在当前文件夹下安装pybind11后,第一步,编写CPP文件 1、cpp_sources/data_processor.h #include <random> #include <vector> class DataProcessor { public: DataProcessor() = defa 阅读全文
posted @ 2024-05-07 17:18 南乡水 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 首先编写4个文件: 1、CMakeLists.txt内容: cmake_minimum_required(VERSION 3.15) project(Demo) include_directories(${PROJECT_BINARY_DIR}/headers) aux_source_directo 阅读全文
posted @ 2024-05-07 14:21 南乡水 阅读(8) 评论(0) 推荐(0) 编辑