摘要: 首先在当前文件夹下安装pybind11。 然后编写以下3个文件: 1、CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(example LANGUAGES CXX) add_subdirectory(pybind11) pybind 阅读全文
posted @ 2024-05-07 17:17 南乡水 阅读(8) 评论(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:20 南乡水 阅读(3) 评论(0) 推荐(0) 编辑