Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf94973b

Browse files
committed
filled out CMakeLists
1 parentddb75d9 commitf94973b

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Build directory
2+
build
3+
14
# Prerequisites
25
*.d
36

‎CMakeLists.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
cmake_minimum_required(VERSION 2.8.12)
2+
project(python_cpp_example)
3+
4+
SET(SOURCE_DIR"python_cpp_example")
5+
SET(SOURCES"${SOURCE_DIR}/main.cpp")
6+
7+
add_subdirectory(pybind11)
8+
pybind11_add_module(python_cpp_example${SOURCES}"${SOURCE_DIR}/bindings.cpp")

‎bindings.cpp‎renamed to ‎python_cpp_example/bindings.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include<pybind11/pybind11.h>
2+
#include"main.hpp"
23

34
namespacepy= pybind11;
45

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp